/* Glassmorphism & Animations */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --bg-dark: #0a0f1a;
    --glass-bg: rgba(15, 25, 45, 0.6);
    --glass-border: rgba(59, 130, 246, 0.3);
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    min-height: 100vh;
}

/* Glass effect classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: rgba(15, 25, 45, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* Glowing input */
.glow-input {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.3s;
}
.glow-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}
.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}
.btn-danger {
    background: var(--danger);
}
.btn-success {
    background: var(--success);
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3a3f54;
    transition: 0.3s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary);
}
input:checked + .slider:before {
    transform: translateX(26px);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--success);
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: slideInRight 0.3s ease;
    color: white;
    font-size: 0.9rem;
}
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--primary); }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1e293b;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ========== RESPONSIVE & MOBILE MENU ========== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}
.nav-center {
    display: flex;
    gap: 2rem;
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-center {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: rgba(10, 15, 26, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 1000;
        border-right: 1px solid rgba(59,130,246,0.3);
    }
    .nav-center.active {
        left: 0;
    }
    .nav-center a {
        font-size: 1.2rem;
    }
    .nav-right {
        margin-left: auto;
    }
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        margin-bottom: 1rem;
    }
    .stats-grid {
        gap: 1rem;
    }
    .stat-card {
        min-width: 120px;
        padding: 1rem;
    }
    .features-grid, .module-grid, .commands-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .glass-card {
        padding: 1rem;
    }
    .setting-group input, .setting-group select, .setting-group textarea {
        font-size: 16px; /* prevents zoom on mobile */
    }
}

/* Dashboard specific */
.dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}
.sidebar {
    width: 280px;
    background: rgba(26, 29, 43, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}
.server-selector select {
    width: 100%;
    padding: 0.6rem;
    background: #2c2f3a;
    border: none;
    border-radius: 0.5rem;
    color: white;
    margin-top: 0.5rem;
}
.modules-menu h3 {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.modules-menu ul {
    list-style: none;
}
.modules-menu li {
    padding: 0.7rem;
    margin: 0.3rem 0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.modules-menu li i {
    width: 24px;
    margin-right: 10px;
}
.modules-menu li.active, .modules-menu li:hover {
    background: rgba(44, 47, 58, 0.8);
    color: var(--accent);
}
.dashboard-content {
    flex: 1;
    background: rgba(26, 29, 43, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--glass-border);
}
.module-pane {
    display: none;
}
.module-pane.active {
    display: block;
}
.security-cards {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.card {
    background: rgba(44, 47, 58, 0.8);
    padding: 1rem;
    border-radius: 0.8rem;
    flex: 1;
}
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.module-card {
    background: rgba(44, 47, 58, 0.8);
    padding: 1rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.module-card:hover {
    transform: translateY(-3px);
    background: #3a3f54;
}
.module-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.setting-group {
    margin-bottom: 1.5rem;
}
.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.setting-group input, .setting-group textarea, .setting-group select {
    width: 100%;
    padding: 0.6rem;
    background: #2c2f3a;
    border: 1px solid #3a3f54;
    border-radius: 0.5rem;
    color: white;
}
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Commands Page */
.commands-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.commands-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.search-bar {
    display: flex;
    align-items: center;
    background: #1a1d2b;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
}
.search-bar i {
    margin-right: 10px;
    color: var(--text-muted);
}
.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    outline: none;
}
.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-btn {
    background: #2c2f3a;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    border: none;
    color: white;
    cursor: pointer;
}
.filter-btn.active {
    background: var(--primary);
}
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.command-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 0.8rem;
    border: 1px solid var(--glass-border);
}
.command-card h3 {
    font-family: monospace;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.command-card .category {
    display: inline-block;
    background: #2c2f3a;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    margin-top: 0.5rem;
}

/* Team Page */
.team-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.team-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    text-align: center;
}
.team-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.team-card h3 {
    margin-bottom: 0.2rem;
}
.team-card p {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}
.team-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: rgba(15, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-brand {
    max-width: 300px;
}
.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    gap: 4rem;
}
.footer-column h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}
.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}