/* =====================================================================
   QL Ca Làm - Frontend Design System (Standalone Client)
   Theme: Warm Coffee & Cream
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-primary: #cf6800;
    --brand-primary-hover: #b45309;
    --brand-badge-bg: #fef3c7;
    --brand-badge-text: #b45309;
    --brand-light: #fffbeb;
    
    --bg-page: #fbf8f4;
    --bg-section: #f7f3ec;
    --card-border: #f0e9df;
    --input-border: #e6dfd5;
    
    --sidebar-bg: #1c1510;
    --sidebar-active-bg: #2d2018;
    --sidebar-card-bg: #281e17;
    --sidebar-text: #a19991;
    --sidebar-text-hover: #ffffff;
    
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #9ca3af;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

/* Auth Cards */
.auth-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 20px 45px -10px rgba(180, 83, 9, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
}

.hero-preview-card {
    background: #ffffff;
    border: 1px solid #f2e9de;
    border-radius: 24px;
    box-shadow: 0 24px 50px -12px rgba(180, 83, 9, 0.1), 0 4px 14px -3px rgba(0, 0, 0, 0.03);
}

.feature-card {
    background: #ffffff;
    border: 1px solid #efe7db;
    border-radius: 20px;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(180, 83, 9, 0.1);
}

/* Dashboard Cards */
.dash-card {
    background: #ffffff;
    border: 1px solid #efe7db;
    border-radius: 20px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease;
}

.dash-card-alert {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 20px;
}

/* Form Controls */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background-color: #ffffff;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(207, 104, 0, 0.15);
}

/* Primary Button */
.btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(207, 104, 0, 0.25);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    box-shadow: 0 6px 16px rgba(207, 104, 0, 0.35);
}

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

/* Secondary Button / Shortcut Pill */
.btn-outline-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background-color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline-brand:hover {
    background-color: #fffbeb;
    border-color: var(--brand-primary-hover);
    color: var(--brand-primary-hover);
}

/* Badges */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-warning {
    background-color: var(--brand-badge-bg);
    color: var(--brand-badge-text);
}

.badge-status-working {
    background-color: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.badge-status-waiting {
    background-color: #fef9c3;
    color: #a16207;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* Bar Chart Styling */
.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    max-width: 48px;
    background-color: var(--brand-primary);
    border-radius: 6px 6px 0 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    position: relative;
}

.chart-bar:hover {
    background-color: var(--brand-primary-hover);
    transform: scaleY(1.02);
}

/* Sidebar Styling */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-link:hover {
    color: var(--sidebar-text-hover);
    background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    background-color: var(--sidebar-active-bg);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background-color: var(--brand-primary);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
