/* assets/css/style.css - Daily Muster Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Color Palette */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eeeffe;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: #1e293b;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    --shadow-primary: 0 8px 20px -4px rgba(79, 70, 229, 0.35);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 75px !important;
    }
}

h1, h2, h3, h4, h5, h6, .classic-title, .brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* Base Layout & Sidebar */
.app-sidebar {
    width: 270px;
    background: var(--bg-sidebar);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
    z-index: 100;
    transition: all 0.3s ease;
}

.brand-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-primary);
}

.app-sidebar .nav-link {
    color: #94a3b8;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.925rem;
}

.app-sidebar .nav-link i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.app-sidebar .nav-link:hover {
    color: #ffffff;
    background: var(--bg-sidebar-hover);
    transform: translateX(3px);
}

.app-sidebar .nav-link:hover i {
    transform: scale(1.1);
    color: #6366f1;
}

.app-sidebar .nav-link.active {
    color: #ffffff;
    background: var(--primary-gradient);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

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

/* User Card in Sidebar */
.user-profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Cards & Panels */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-surface) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main) !important;
    padding: 16px 20px;
}

.card-body {
    padding: 20px;
}

/* Metric Stat Cards */
.stat-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: #ffffff;
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.stat-icon.indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.stat-icon.rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

/* Buttons */
.btn {
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 9px 18px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-gradient);
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

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

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.825rem;
    border-radius: var(--border-radius-sm);
}

/* Forms & Inputs */
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 6px;
}

input.form-control, select.form-select, textarea.form-control {
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-main);
    padding: 10px 14px;
    font-size: 0.925rem;
    transition: all 0.2s ease;
}

input.form-control:focus, select.form-select:focus, textarea.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.badge-soft-primary { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.badge-soft-success { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-soft-warning { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.badge-soft-danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.badge-soft-info { background: rgba(59, 130, 246, 0.12); color: #2563eb; }

/* Tables */
.table-container {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table {
    font-size: 0.9rem;
    margin-bottom: 0;
    vertical-align: middle;
}

.table th {
    font-family: var(--font-heading);
    font-weight: 600;
    background-color: #f8fafc;
    color: #475569;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table td {
    padding: 14px 16px;
    border-color: #f1f5f9;
    color: #1e293b;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Simple-DataTables Styling */
.datatable-wrapper .datatable-top {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.datatable-wrapper .datatable-bottom {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.datatable-input {
    border-radius: var(--border-radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 8px 14px !important;
}

.datatable-pagination a {
    border-radius: var(--border-radius-sm) !important;
    margin: 0 2px !important;
}

/* Kanban Board Styling */
.kanban-board-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-col {
    flex: 1;
    min-width: 320px;
    background: #f1f5f9;
    border-radius: var(--border-radius-lg);
    padding: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.kanban-col-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.kanban-task-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 12px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.kanban-task-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.kanban-task-card:active {
    cursor: grabbing;
    transform: scale(0.98);
}

/* Mobile Navigation */
@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 62px !important;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.25) !important;
        z-index: 1030 !important;
        margin: 0 !important;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
    }

    .mobile-nav-item {
        color: #94a3b8 !important;
        text-decoration: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 4px !important;
        border-radius: 10px !important;
        transition: all 0.2s ease !important;
        flex: 1 !important;
        min-width: 0 !important;
        text-align: center !important;
        position: relative !important;
    }

    .mobile-nav-item:hover {
        color: #cbd5e1 !important;
    }

    .mobile-nav-item.active {
        color: #818cf8 !important;
        background: rgba(99, 102, 241, 0.12) !important;
    }

    .mobile-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 16px;
        height: 3px;
        background: #6366f1;
        border-radius: 0 0 4px 4px;
    }

    .mobile-nav-item i {
        font-size: 1.2rem !important;
        line-height: 1 !important;
        margin-bottom: 3px !important;
    }

    .mobile-nav-item span {
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .container-fluid {
        padding-bottom: 85px !important;
    }
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Minimalist Login Page Spec */
.login-wrapper {
    min-height: 88vh;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.login-header {
    background: #ffffff;
    color: #0f172a;
    padding: 36px 24px 12px 24px;
}

.login-icon-box {
    width: 52px;
    height: 52px;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid #e2e8f0;
}

/* Pulsing Live indicator */
.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
