:root {
    --glass-bg: rgba(10, 10, 10, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --primary: #4285F4;
    /* Google Blue */
    --accent: #8AB4F8;
    /* Light Blue */
    --danger: #EA4335;
    /* Google Red */
    --success: #34A853;
    /* Google Green */
    --text-main: #E8EAED;
    --text-secondary: #9AA0A6;
    --blur: 16px;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #050505;
    /* Deep Black */
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.glass-panel {
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.8rem;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
    background: #3367D6;
    transform: scale(1.02);
}

.btn-danger {
    background: rgba(234, 67, 53, 0.2);
    color: var(--danger);
    border: 1px solid rgba(234, 67, 53, 0.3);
}

.btn-danger:hover {
    background: rgba(234, 67, 53, 0.3);
}

/* Form Elements */
input,
select,
textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Sidebar & Nav */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 260px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding: 20px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 10, 10, 0.95);
    border-right: 1px solid var(--glass-border);
}

.sidebar.active,
.sidebar:hover {
    left: 0;
}

.sidebar-trigger {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    z-index: 999;
    background: transparent;
}

.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 900;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s;
}

.sidebar.active~.hamburger-menu,
.sidebar:hover~.hamburger-menu {
    opacity: 0;
    pointer-events: none;
}

.main-content {
    margin-left: 0;
    padding: 40px 20px;
    flex: 1;
    transition: margin-left 0.3s;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 16px;
    margin-bottom: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.nav-item.active {
    background: rgba(66, 133, 244, 0.15);
    color: var(--primary);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    padding-left: 10px;
    background: linear-gradient(to right, #fff, #9AA0A6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Landing Page Header Buttons */
header .btn {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

header .btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1c1c1e;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Global Alert Popup */
.global-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
}

.global-alert.show {
    transform: translateX(-50%) translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        width: 80%;
    }

    .sidebar.active {
        left: 0;
    }

    .logo {
        display: block;
    }

    .nav-item {
        flex-direction: row;
        font-size: 1rem;
        padding: 15px;
        text-align: left;
    }

    .nav-item span {
        display: inline;
        margin-top: 0;
        margin-left: 10px;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 0;
        padding: 20px;
        padding-top: 80px;
    }

    h1 {
        font-size: 2rem;
    }
}