/* Header Spacer */
.header-spacer {
    height: 140px;
}

/* Top Info Bar */
.top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 10px 0;
    z-index: 1002;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: white;
}

.separator {
    color: #64748b;
}

.app-available-text {
    color: #cbd5e1;
    margin-right: 8px;
}

.app-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.app-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Floating Island Header */
.floating-island-header {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 0;
}

.island-navigation {
    background: white;
    border-radius: 100px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 20px;
}

.nav-logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links-island {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item-island {
    position: relative;
}

.nav-link-island {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link-island:hover,
.nav-link-island.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-content {
    max-width: 100%;
}

.mega-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-section-title i {
    color: #6366f1;
    font-size: 1.1rem;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-links li {
    margin-bottom: 10px;
}

.mega-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
}

.mega-links a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    padding-left: 16px;
}

/* Featured Box */
.mega-featured {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.featured-box {
    text-align: center;
    color: white;
}

.featured-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.featured-box h6 {
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-box p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.featured-link {
    color: white;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.featured-link:hover {
    background: white;
    color: #6366f1;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-island-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-island-link:hover {
    background: rgba(30, 41, 59, 0.05);
}

.btn-island-primary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.btn-island-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.3);
    color: white;
}

.btn-island-user {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-island-user:hover {
    border-color: #6366f1;
    transform: scale(1.05);
}

.btn-island-user img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Dropdown */
.island-dropdown-menu {
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 12px;
    margin-top: 12px;
}

.island-dropdown-menu .dropdown-item {
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000;
}

.island-dropdown-menu .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 3px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav-collapse {
    background: white;
    border-radius: 24px;
    margin-top: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 20px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 8px;
}

.mobile-nav-list a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-list a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    text-align: center;
}

/* Floating Demo Button */
.floating-demo-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.btn-demo {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-demo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.5);
}

.btn-demo i {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Modal */
.modal-modern {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links-island {
        gap: 0;
    }

    .nav-link-island {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .header-spacer {
        height: 120px;
    }

    .top-bar-content {
        padding: 0 20px;
    }

    .island-navigation {
        border-radius: 20px;
        padding: 16px;
        margin: 0 10px;
    }

    .nav-links-island,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .btn-demo span {
        display: none;
    }

    .btn-demo {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-info-bar {
        font-size: 0.8rem;
    }

    .app-available-text {
        display: none;
    }

    .floating-demo-btn {
        bottom: 20px;
        right: 20px;
    }
}
