:root {
    --primary: #1E82BF;
    --primary-hover: #166BA0;
    --success: #67AC5D;
    --error: #E73E3E;
    --warning: #F0B429;
    --bg-default: #F5F5F5;
    --bg-blue: #ECF1F6;
    
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #191919;
    
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-default);
    color: var(--gray-900);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Auth Page Layout */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: white;
}

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    max-width: 600px;
}

.auth-image-side {
    flex: 1.2;
    background: linear-gradient(135deg, #1E82BF 0%, #0D47A1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-image-side::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.auth-header h1 {
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.google-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* Dashboard Layout */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { opacity: 0.9; }

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.job-item:last-child { border-bottom: none; }

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-streaming { background: #E0F2FE; color: #0369A1; }
.status-stopped { background: #F3F4F6; color: #374151; }
.status-error { background: #FEE2E2; color: #991B1B; }

.log-panel {
    height: 400px;
    background: #1E293B;
    color: #F8FAFC;
    padding: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    border-radius: 8px;
    overflow-y: auto;
    margin-top: 1rem;
}

.log-line { margin-bottom: 4px; border-left: 2px solid transparent; padding-left: 8px; }
.log-error { border-left-color: var(--error); color: #FDA4AF; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--gray-700); }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--primary); }
