﻿
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #1a1a2e;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Modern Navbar */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

    .modern-navbar.scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: var(--shadow-hover);
        padding: 0.5rem 0;
    }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .navbar-brand:hover {
        transform: scale(1.02);
    }

.brand-icon {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28102, 126, 234, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User Dropdown */
.user-dropdown .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

    .user-dropdown .user-info:hover {
        background: rgba(102, 126, 234, 0.15);
        border-color: rgba(102, 126, 234, 0.3);
        transform: translateY(-2px);
    }

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    font-weight: 600;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 220px;
}

.dropdown-item {
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 0;
}

    .dropdown-item:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #4c63d2;
        transform: translateX(8px);
    }

    .dropdown-item.text-danger:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    .dropdown-item i {
        width: 20px;
        text-align: center;
        margin-right: 0.75rem;
    }

.dropdown-divider {
    margin: 0.75rem 0;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Login Button */
.btn-login {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-login:hover {
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

/* Main Content */
.main-content {
    padding-top: 90px;
    min-height: 100vh;
}

/* Iframe Modal */
#iframeContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

    #iframeContainer.active {
        display: flex;
        opacity: 1;
    }

    #iframeContainer iframe {
        width: 95%;
        height: 95%;
        border: none;
        border-radius: 15px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        background: white;
    }

#closeIframe {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    #closeIframe:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

    .loading-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-navbar {
        padding: 1rem 0;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1.5rem;
    }

    .user-dropdown .user-info {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .btn-login {
        justify-content: center;
        margin-top: 1rem;
        width: 100%;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        background: rgba(102, 126, 234, 0.05);
        border: 1px solid rgba(102, 126, 234, 0.1);
        margin-top: 1rem;
    }

    #closeIframe {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    #iframeContainer iframe {
        width: 98%;
        height: 98%;
    }
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page transition */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

    .page-transition.loaded {
        opacity: 1;
        transform: translateY(0);
    }
