/* Reset and Base Styles */
:root {
    --bg-base: #050505;
    --bg-surface: rgba(22, 22, 22, 0.6);
    --bg-surface-hover: rgba(30, 30, 30, 0.8);
    --gold-primary: #d4a843;
    --gold-bright: #f0c96e;
    --gold-gradient: linear-gradient(135deg, #f0c96e 0%, #d4a843 100%);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Premium Effects */
    --glass-blur: blur(16px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-border-hover: 1px solid rgba(212, 168, 67, 0.4);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(212, 168, 67, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(212, 168, 67, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(212, 168, 67, 0.03), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--gold-bright);
}

/* Typography Enhancements */
.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(212, 168, 67, 0.2);
    display: inline-block;
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(212, 168, 67, 0.08), transparent 40%), var(--bg-base);
}

.login-container {
    width: 100%;
    max-width: 420px;
    animation: fadeUpIn 0.6s ease-out forwards;
}

.login-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.login-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ff6b6b;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.95rem;
    animation: shake 0.4s ease-in-out;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.btn-login {
    background: var(--gold-gradient);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(1px);
}

/* Navigation - Glassmorphic */
.top-nav {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ff6b6b;
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 32px;
    width: 100%;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Welcome Section */
.welcome-section {
    animation: fadeUpIn 0.8s ease-out forwards;
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-section .date {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Section Styling */
.dashboard-section {
    animation: fadeUpIn 0.8s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.dashboard-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-section h2::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
}

/* Workspace Hero Card */
.workspace-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.workspace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.workspace-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    border: var(--glass-border-hover);
}

.workspace-card:hover::before {
    opacity: 1;
}

.workspace-card p {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.workspace-card .muted {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* General Grid Configuration */
.app-grid,
.team-grid,
.content-grid {
    display: grid;
    gap: 24px;
}

.app-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.content-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* The Premium Card Standard */
.card-premium {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Outer Glow FX */
.card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    box-shadow: 0 0 0 0 rgba(212, 168, 67, 0);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.card-premium:hover {
    transform: translateY(-6px) scale(1.01);
    background: var(--bg-surface-hover);
    border: var(--glass-border-hover);
    z-index: 2;
}

.card-premium:hover::after {
    box-shadow: inset 0 0 20px rgba(212, 168, 67, 0.05);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-premium:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

.card-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-subtitle {
    color: var(--gold-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    /* Pushes badges to the bottom */
}

/* Specific Badge Wrapper */
.card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(4px);
}

.badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-live {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.badge-live::before {
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.badge-soon {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 168, 67, 0.2);
}

.badge-soon::before {
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

/* Team Section Adjustments */
.team-avatar {
    font-size: 4rem;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.card-premium:hover .team-avatar {
    background: rgba(212, 168, 67, 0.1);
    border-color: rgba(212, 168, 67, 0.3);
    transform: scale(1.05);
}

.team-card-inner {
    text-align: center;
}

/* Footer */
.site-footer {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    text-align: center;
    margin-top: auto;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Responsive Tweaks */
@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.25rem;
    }

    .user-name {
        display: none;
        /* Hide on mobile to save space */
    }

    .main-content {
        padding: 32px 20px;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .app-grid,
    .team-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
}