:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-white: #ffffff;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #020617;
    min-height: 100vh;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Animation Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/img/background.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #4f46e5;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

/* Navbar Modernization */
.modern-nav {
    padding: 1rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(2, 6, 23, 0.7);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.btn-login {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Hero Section */
.hero-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.logo-main {
    width: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.btn-primary-custom:hover {
    transform: translateY(-5px);
    background: var(--primary-hover);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

.btn-outline-custom {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
}

.footer-text {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-nav {
        padding: 1rem;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 1rem;
        border: 1px solid var(--glass-border);
    }
    
    .hero-container {
        padding-top: 2rem;
    }
}

/* Card Modernization */
.modern-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-img-modern {
    height: 160px;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
    transition: all 0.4s ease;
}

.modern-card:hover .card-img-modern {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.05);
}

.card-body-modern {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
    line-height: 1.4;
}

.btn-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white !important;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: block;
    width: 100%;
}

.btn-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.02);
}

/* Page Headers */
.page-header {
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Alerts */
.alert-modern {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #4ade80;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(5px);
    margin-bottom: 2rem;
}

/* Table Modernization */
.table-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-top: 2rem;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.modern-table th {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
}

.modern-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease;
}

.modern-table tbody tr:hover {
    transform: scale(1.01);
    background: rgba(255, 255, 255, 0.05);
}

.modern-table td {
    padding: 1.25rem 1rem;
    border: none;
    color: var(--text-white);
    vertical-align: middle;
}

.modern-table td:first-child { border-radius: 12px 0 0 12px; }
.modern-table td:last-child { border-radius: 0 12px 12px 0; }

/* Badges */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Login & Form Modernization */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group-modern {
    margin-bottom: 2rem;
    position: relative;
}

.input-modern {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-modern:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    transition: color 0.3s ease;
}

.input-modern:focus + .input-icon {
    color: var(--primary);
}

.btn-login-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
