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

:root {
    --bg-main: #020617;
    --bg-card: #020617;
    --bg-soft: #0f172a;
    --border-soft: #1f2937;
    --text-main: #f9fafb;
    --text-soft: #9ca3af;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.25);
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.18);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #4f46e5, #020617);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navigation */
.header {
    width: 100%;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(from 150deg, #22c55e, #3b82f6, #a855f7, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.logo-icon::after {
    content: 'S';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #020617;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.logo-text h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: -2px;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-soft);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.83rem;
    color: var(--text-soft);
    border: 1px solid transparent;
    transition: all 0.12s ease;
}

.nav-links a:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text-main);
}

.nav-links a.active {
    background: var(--accent-soft);
    border-color: rgba(129, 140, 248, 0.9);
    color: #e0e7ff;
}

/* Buttons */
.btn {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: rgba(129, 140, 248, 0.6);
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.6);
    padding: 0.35rem 0.8rem;
}

.btn-outline:hover {
    background: var(--accent-soft);
    border-color: rgba(129, 140, 248, 0.9);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn-google {
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: #f5f5f5;
}

.google-icon {
    font-weight: bold;
    font-size: 18px;
    background: linear-gradient(45deg, #4285f4, #ea4335, #fbbc05, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    background: var(--secondary-bg);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: white;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Badges */
.badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    color: #9ca3af;
}

.badge-green {
    border-color: rgba(34, 197, 94, 0.7);
    background: var(--green-soft);
    color: #bbf7d0;
}

.badge-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.6);
}

.badge-blue {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.6);
}

/* Status Indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer p {
    color: var(--text-secondary);
    margin: 8px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin: 15px 0;
}

.footer-links a {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
