* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a0e27;
    --secondary-color: #141b3d;
    --accent-color: #1a2458;
    --highlight-color: #00d4ff;
    --highlight-secondary: #0099cc;
    --success-color: #00ff88;
    --danger-color: #ff3366;
    --warning-color: #ffaa00;
    --info-color: #00a8ff;
    --dark-color: #050812;
    --light-color: #f8f9fa;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #0066aa 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e27 0%, #141b3d 50%, #1a2458 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 153, 204, 0.1) 100%);
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-dark);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 153, 204, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 168, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar:hover {
    border-bottom-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 800;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.nav-brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.4));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 6px 20px rgba(0, 212, 255, 0.6));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.nav-menu a i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 153, 204, 0.1) 100%);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.nav-menu a:hover i {
    transform: scale(1.1);
}

.nav-menu a:active {
    transform: translateY(0);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: rgba(20, 27, 61, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.6;
    transition: opacity 0.4s;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    animation: cardGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(20px, 20px) scale(1.1); opacity: 0.5; }
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 212, 255, 0.3), 
                0 0 0 1px rgba(0, 212, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.card-header h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.card-header h2 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: var(--highlight-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2), 
                0 8px 24px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, #00e5ff 0%, #00aacc 50%, #0077bb 100%);
}

.btn-success {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.btn-success:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3366 0%, #cc0044 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.btn-danger:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.4);
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.btn-warning:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 170, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #00a8ff 0%, #0077cc 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.btn-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.6);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 1.75rem 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 4px solid;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-color: #00ff88;
}

.alert-danger {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
    border-color: #ff3366;
}

.alert-warning {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border-color: #ffaa00;
}

.alert-info {
    background: rgba(0, 168, 255, 0.15);
    color: #00a8ff;
    border-color: #00a8ff;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.table th,
.table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.table th {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 153, 204, 0.15) 100%);
    color: var(--text-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    position: relative;
}

.table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(0, 212, 255, 0.3);
}

.table tr {
    transition: all 0.3s ease;
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.01);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table td {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.table td strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.dashboard-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 153, 204, 0.1) 100%);
}

.dashboard-card i {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.dashboard-card h3 {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.dashboard-card p {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

/* Home Page */
.hero {
    text-align: center;
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 153, 204, 0.15) 0%, transparent 50%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.75rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 2rem;
    }
    
    .card-header h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 5px solid rgba(0, 212, 255, 0.2);
    border-top: 5px solid var(--highlight-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
    border-left: 1px solid rgba(0, 212, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 7px;
    border: 2px solid var(--dark-color);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00aacc 100%);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Additional Professional Elements */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--highlight-color);
    font-weight: bold;
    font-size: 0.7rem;
}

small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Input focus effects */
input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--highlight-color);
}

/* Link styles */
a {
    color: var(--highlight-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #00e5ff;
    text-decoration: underline;
}

/* Selection */
::selection {
    background: var(--highlight-color);
    color: white;
}

/* Additional Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(0, 212, 255, 0.2);
    color: var(--highlight-color);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-danger {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.badge-warning {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(255, 170, 0, 0.3);
}
