/**
 * TaskSalonApp - Modern Clean SaaS Design
 * Mobile-First Staff Checklist & Task Management
 */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --bottom-nav-height: 64px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Typography & General */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-surface {
    background-color: var(--bg-surface) !important;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Status Cards / Borders */
.border-l-primary { border-left: 5px solid var(--primary) !important; }
.border-l-success { border-left: 5px solid var(--success) !important; }
.border-l-warning { border-left: 5px solid var(--warning) !important; }
.border-l-danger  { border-left: 5px solid var(--danger) !important; }
.border-l-info    { border-left: 5px solid var(--info) !important; }

/* Buttons & Inputs */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    transition: all 0.15s ease;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-lg {
    padding: 0.85rem 1.4rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* Mobile-Friendly Yes/No Choice Buttons */
.checklist-item-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    background: #ffffff;
    transition: border-color 0.2s;
}

.checklist-item-card.answered {
    border-color: #cbd5e1;
    background-color: #fbfcfe;
}

.choice-btn-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.choice-btn {
    flex: 1;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.choice-btn:active {
    transform: scale(0.98);
}

.choice-btn.selected-yes {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.choice-btn.selected-no {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Desktop Layout: Sidebar + Main Content */
@media (min-width: 992px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: var(--sidebar-width);
        background: #ffffff;
        border-right: 1px solid var(--border-color);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .app-main {
        margin-left: var(--sidebar-width);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Mobile Layout */
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + 16px);
    }

    .app-sidebar {
        display: none;
    }

    .app-main {
        margin-left: 0;
        min-height: calc(100vh - var(--bottom-nav-height));
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--bottom-nav-height);
        background: #ffffff;
        border-top: 1px solid var(--border-color);
        z-index: 1030;
        display: flex;
        align-items: center;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        color: var(--text-muted);
        text-decoration: none;
        padding: 6px 12px;
        font-weight: 500;
    }

    .mobile-nav-link i {
        font-size: 1.35rem;
        margin-bottom: 2px;
    }

    .mobile-nav-link.active, .mobile-nav-link:hover {
        color: var(--primary);
    }
}

/* Sidebar Links */
.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    margin: 3px 12px;
    transition: all 0.15s ease;
}

.sidebar-nav-link i {
    font-size: 1.2rem;
    margin-right: 12px;
    color: #64748b;
}

.sidebar-nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav-link:hover i {
    color: var(--primary);
}

.sidebar-nav-link.active {
    background-color: var(--primary);
    color: #ffffff;
}

.sidebar-nav-link.active i {
    color: #ffffff;
}

/* Hero "Due Now" Card for Staff */
.due-now-card {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.due-now-card h3, .due-now-card p, .due-now-card span {
    color: #ffffff !important;
}

.btn-due-now {
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-due-now:hover {
    background: #f8fafc;
    color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Stat Cards */
.stat-widget {
    padding: 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Badge styling */
.badge {
    font-weight: 600;
    letter-spacing: 0.2px;
}
