/* =========================================================
   BAKERY POS – Custom Stylesheet
   Theme: Professional Bakery Production Management
   ========================================================= */

/* ---- CSS Variables ---- */
:root {
    --primary:    #D35400;
    --secondary:  #F39C12;
    --success:    #27AE60;
    --danger:     #E74C3C;
    --dark:       #2C3E50;
    --light:      #F8F9FA;
    --white:      #FFFFFF;
    --sidebar-w:  260px;
    --sidebar-bg: #1a252f;
    --sidebar-hover: #D35400;
    --top-h:      64px;
    --radius:     12px;
    --radius-sm:  8px;
    --shadow:     0 2px 15px rgba(0,0,0,.08);
    --shadow-md:  0 4px 25px rgba(0,0,0,.12);
    --transition: all .25s ease;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #2C3E50;
    background: #f0f2f5;
    margin: 0;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--primary); }

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(211,84,0,.15);
    flex-shrink: 0;
}

.brand-icon {
    width: 44px; height: 44px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(211,84,0,.4);
}

.brand-title { font-size: 16px; font-weight: 700; color: white; display: block; line-height: 1.2; }
.brand-subtitle { font-size: 10px; color: rgba(255,255,255,.5); display: block; }

.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.user-avatar { font-size: 28px; color: rgba(255,255,255,.5); }
.user-name   { font-size: 13px; font-weight: 600; color: white; display: block; line-height: 1.2; }
.user-role   { font-size: 11px; color: rgba(255,255,255,.4); }

.sidebar-menu {
    list-style: none;
    margin: 8px 0;
    padding: 0;
    flex: 1;
}

.menu-header {
    padding: 16px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.3);
}

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,.65);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.menu-item > a:hover {
    color: white;
    background: rgba(255,255,255,.07);
    border-left-color: var(--primary);
}

.menu-item.active > a {
    color: white;
    background: rgba(211,84,0,.2);
    border-left-color: var(--primary);
    font-weight: 600;
}

.menu-icon {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.07);
    border-radius: 7px;
    font-size: 13px;
    flex-shrink: 0;
    transition: var(--transition);
}

.menu-item.active .menu-icon,
.menu-item > a:hover .menu-icon {
    background: var(--primary);
    color: white;
}

.menu-text { font-size: 13.5px; }

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* ---- Top Navbar ---- */
.top-navbar {
    height: var(--top-h);
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.navbar-left { display: flex; align-items: center; gap: 16px; }

.sidebar-toggle {
    width: 38px; height: 38px;
    background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 15px; color: #6c757d;
    transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }

.breadcrumb-title { font-size: 16px; font-weight: 700; color: var(--dark); display: block; line-height: 1.2; }
.breadcrumb { margin: 0; }
.breadcrumb-item, .breadcrumb-item a { font-size: 12px; color: #999; }
.breadcrumb-item.active { color: var(--primary); }
.breadcrumb-item + .breadcrumb-item::before { color: #ccc; }

.navbar-right { display: flex; align-items: center; gap: 16px; }

.navbar-date { font-size: 13px; color: #6c757d; background: #f8f9fa; padding: 6px 14px; border-radius: 20px; }

.btn-user {
    display: flex; align-items: center; gap: 8px;
    background: white; border: 1px solid #dee2e6; border-radius: 25px;
    padding: 5px 14px 5px 7px; font-size: 13px; color: var(--dark); cursor: pointer;
    transition: var(--transition);
}
.btn-user:hover { border-color: var(--primary); color: var(--primary); }
.user-avatar-sm {
    width: 28px; height: 28px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 12px;
}

/* ---- Content Wrapper ---- */
.content-wrapper { flex: 1; padding: 24px; }

/* =========================================================
   PAGE CARD (main content box)
   ========================================================= */
.page-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border-bottom: 2px solid #f0f2f5;
}

.page-card-header h5 { font-size: 16px; font-weight: 700; color: var(--dark); }
.page-card-body { padding: 24px; }

.header-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 15px;
    box-shadow: 0 3px 10px rgba(211,84,0,.3);
}

.header-icon-sm {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 12px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: white; border: none;
    padding: 9px 20px; border-radius: 25px; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(211,84,0,.3);
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(211,84,0,.4); color: white; }

.btn-save-custom {
    background: linear-gradient(135deg, var(--success), #2ecc71);
    color: white; border: none;
    padding: 10px 28px; border-radius: 25px; font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(39,174,96,.3);
}
.btn-save-custom:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(39,174,96,.4); color: white; }

.btn-success-custom {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white; border: none;
    padding: 9px 20px; border-radius: 25px; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(39,174,96,.3);
}
.btn-success-custom:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(39,174,96,.4); color: white; }

.btn-update-custom {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white; border: none;
    padding: 10px 28px; border-radius: 25px; font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(41,128,185,.3);
}
.btn-update-custom:hover { transform: translateY(-2px); color: white; }

.btn-cancel-custom {
    background: white; color: #6c757d;
    border: 1.5px solid #dee2e6;
    padding: 10px 22px; border-radius: 25px; font-size: 14px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.btn-cancel-custom:hover { background: #f8f9fa; border-color: #adb5bd; color: var(--dark); }

.btn-back-custom {
    background: white; color: #6c757d;
    border: 1.5px solid #dee2e6;
    padding: 8px 18px; border-radius: 25px; font-size: 13px;
    display: inline-flex; align-items: center; gap: 5px;
    transition: var(--transition);
}
.btn-back-custom:hover { border-color: var(--primary); color: var(--primary); background: #fff5f0; }

.btn-add-row {
    background: linear-gradient(135deg, #1a6b3c, var(--success));
    color: white; border: none;
    padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
    transition: var(--transition);
}
.btn-add-row:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(39,174,96,.35); color: white; }

/* ---- Action Buttons (table) ---- */
.action-btns { display: flex; align-items: center; justify-content: center; gap: 6px; }

.btn-action {
    width: 32px; height: 32px;
    border-radius: 8px; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer; transition: var(--transition);
}

.btn-view   { background: #e8f4fd; color: #2980b9; }
.btn-edit   { background: #fef9e7; color: #F39C12; }
.btn-delete { background: #fdedec; color: var(--danger); }

.btn-view:hover   { background: #2980b9; color: white; transform: scale(1.1); }
.btn-edit:hover   { background: #F39C12; color: white; transform: scale(1.1); }
.btn-delete:hover { background: var(--danger); color: white; transform: scale(1.1); }

/* ---- Search & Clear Buttons ---- */
.btn-search {
    background: var(--primary); color: white; border: none;
    padding: 8px 20px; border-radius: 0 25px 25px 0; font-size: 13px; font-weight: 600;
    transition: var(--transition);
}
.btn-search:hover { background: #c0392b; }

.btn-clear {
    background: #6c757d; color: white; border: none;
    padding: 8px 16px; border-radius: 20px; font-size: 13px; margin-left: 6px;
    transition: var(--transition);
}
.btn-clear:hover { background: #5a6268; color: white; }

/* =========================================================
   FORMS
   ========================================================= */
.form-professional { }

.form-label-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
}

.label-icon-bg {
    width: 26px; height: 26px;
    background: rgba(211,84,0,.1);
    color: var(--primary);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.required { color: var(--danger); margin-left: 2px; }

.form-control-custom, .form-select.form-control-custom {
    border: 1.5px solid #dee2e6;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--dark);
    background: white;
    transition: var(--transition);
}
.form-control-custom:focus, .form-select.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211,84,0,.12);
    outline: none;
}
.form-control-custom[readonly] { background: #f8f9fa; color: #6c757d; cursor: default; }

/* ---- Masked Value Display ---- */
.mask-value {
    color: #E74C3C !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 1px;
}

.mask-value::placeholder { color: #E74C3C !important; }

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.cost-display {
    background: linear-gradient(135deg, #f8f9fa, #fff) !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-size: 15px !important;
}

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-form { }

.search-input-wrap {
    display: flex;
    align-items: center;
    max-width: 500px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: #adb5bd;
    font-size: 13px;
    z-index: 2;
}

.search-input {
    padding-left: 38px !important;
    border-radius: 25px 0 0 25px !important;
    border: 1.5px solid #dee2e6 !important;
    border-right: none !important;
    font-size: 13.5px;
    transition: var(--transition);
}
.search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(211,84,0,.1) !important;
    outline: none;
}

/* =========================================================
   TABLE
   ========================================================= */
.table-custom {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 0;
}

.table-custom thead th {
    background: linear-gradient(135deg, var(--dark) 0%, #34495e 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 13px 16px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 5;
}

.table-custom thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.table-custom thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.table-custom tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid #f0f2f5;
}

.table-custom tbody tr:hover { background: #fff8f5; }
.table-custom tbody tr:nth-child(even) { background: #fafbfc; }
.table-custom tbody tr:nth-child(even):hover { background: #fff8f5; }

.table-custom tbody td { padding: 12px 16px; font-size: 13.5px; vertical-align: middle; }

.table-total-row td {
    background: #f8f9fa;
    padding: 12px 16px;
    font-size: 14px;
    border-top: 2px solid #dee2e6;
}

.empty-row { padding: 40px !important; color: #adb5bd; font-size: 14px; }

/* ---- Recipe Grid Table ---- */
.table-recipe {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.table-recipe thead th {
    background: #2C3E50;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 10px 12px;
    border: none;
}
.table-recipe thead th:first-child { border-radius: 8px 0 0 0; }
.table-recipe thead th:last-child  { border-radius: 0 8px 0 0; }

.table-recipe tbody tr { border-bottom: 1px solid #eef0f3; }
.table-recipe tbody tr:hover { background: #fff8f5; }
.table-recipe tbody td { padding: 8px; vertical-align: middle; }
.table-recipe tbody td input, .table-recipe tbody td select {
    border: 1.5px solid #e9ecef;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 13px;
    width: 100%;
    background: white;
    transition: var(--transition);
}
.table-recipe tbody td input:focus, .table-recipe tbody td select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(211,84,0,.1);
    outline: none;
}
.table-recipe tbody td input[readonly] { background: #f8f9fa; color: #6c757d; }

.btn-remove-row {
    width: 28px; height: 28px; border-radius: 7px; border: none;
    background: #fdedec; color: var(--danger); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
    transition: var(--transition);
    margin: 0 auto;
}
.btn-remove-row:hover { background: var(--danger); color: white; }

/* Recipe Grid Section */
.recipe-grid-section {
    border: 1.5px solid #e9ecef;
    border-radius: var(--radius);
    overflow: hidden;
}

.recipe-grid-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.recipe-grid-header h6 { font-size: 14px; font-weight: 700; color: var(--dark); }

.cost-summary-section {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border: 1.5px solid #e9ecef;
    border-radius: var(--radius);
    padding: 20px;
}

/* =========================================================
   BADGES
   ========================================================= */
.code-badge {
    background: rgba(211,84,0,.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: .5px;
}

.price-value { font-weight: 700; color: #27AE60; font-size: 13px; }

.badge-active   { background: rgba(39,174,96,.12);  color: #27AE60; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-inactive { background: rgba(231,76,60,.12);  color: #E74C3C; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* =========================================================
   DASHBOARD
   ========================================================= */
.stat-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
}

.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; opacity: .8; margin: 0; }
.stat-value { font-size: 36px; font-weight: 800; margin: 6px 0 4px; line-height: 1; }
.stat-desc  { font-size: 11px; opacity: .7; margin: 0; }

.stat-icon-wrap {
    font-size: 42px;
    opacity: .18;
    flex-shrink: 0;
}

.stat-footer {
    padding: 10px 22px;
    border-top: 1px solid rgba(255,255,255,.25);
    font-size: 12px;
}
.stat-footer a { opacity: .85; transition: var(--transition); display: flex; align-items: center; gap: 4px; }
.stat-footer a:hover { opacity: 1; }

/* Colors */
.stat-card-primary  { background: linear-gradient(135deg, #D35400, #e67e22); color: white; }
.stat-card-warning  { background: linear-gradient(135deg, #F39C12, #f1c40f); color: white; }
.stat-card-success  { background: linear-gradient(135deg, #27AE60, #2ecc71); color: white; }
.stat-card-danger   { background: linear-gradient(135deg, #E74C3C, #e74c3c); color: white; }

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.dashboard-card-header {
    padding: 16px 20px;
    border-bottom: 2px solid #f0f2f5;
    background: #fafbfc;
}
.dashboard-card-header h5 { font-size: 14px; font-weight: 700; color: var(--dark); margin: 0; }
.dashboard-card-body { padding: 20px; }

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.quick-action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 12px;
    border: 1.5px solid #f0f2f5;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}
.quick-action-btn:hover {
    border-color: var(--primary);
    background: #fff8f5;
    color: var(--primary);
    transform: translateY(-2px);
}
.qa-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* Overview List */
.overview-list { list-style: none; margin: 0; padding: 0; }
.overview-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}
.overview-list li:last-child { border-bottom: none; }
.ov-icon {
    width: 34px; height: 34px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 14px; flex-shrink: 0;
}
.ov-label { flex: 1; font-size: 13px; font-weight: 500; }
.ov-value { font-weight: 700; padding: 3px 12px; border-radius: 20px; font-size: 12px; }
.badge-primary-soft { background: rgba(211,84,0,.1); color: var(--primary); }
.badge-warning-soft { background: rgba(243,156,18,.1); color: #e67e00; }
.badge-success-soft { background: rgba(39,174,96,.1);  color: #27AE60; }
.badge-danger-soft  { background: rgba(231,76,60,.1);  color: var(--danger); }

/* =========================================================
   RECIPE VIEW (show page)
   ========================================================= */
.recipe-view-header { background: #f8f9fa; border-radius: var(--radius-sm); padding: 16px; }
.info-box { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: #999; }
.info-value { font-size: 14px; color: var(--dark); }
.section-title { font-size: 14px; font-weight: 700; color: var(--dark); margin: 20px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #f0f2f5; }

.cost-summary-view { }
.cost-box {
    padding: 16px; border-radius: var(--radius-sm);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    border: 1.5px solid transparent;
    transition: var(--transition);
}
.cost-box:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cost-box-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; opacity: .75; }
.cost-box-value { font-size: 18px; font-weight: 800; }
.cost-box-green  { background: rgba(39,174,96,.08);  color: #27AE60; border-color: rgba(39,174,96,.2); }
.cost-box-yellow { background: rgba(243,156,18,.08); color: #e67e00; border-color: rgba(243,156,18,.2); }
.cost-box-red    { background: rgba(231,76,60,.08);  color: var(--danger); border-color: rgba(231,76,60,.2); }
.cost-box-blue   { background: rgba(41,128,185,.08); color: #2980b9; border-color: rgba(41,128,185,.2); }
.cost-box-purple { background: rgba(142,68,173,.08); color: #8e44ad; border-color: rgba(142,68,173,.2); }
.cost-box-dark   { background: rgba(44,62,80,.08);   color: var(--dark); border-color: rgba(44,62,80,.2); }

/* =========================================================
   AUTH PAGES
   ========================================================= */
.auth-body { background: linear-gradient(135deg, #1a252f 0%, #2C3E50 100%); margin: 0; min-height: 100vh; }

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(211,84,0,.15) 0%, rgba(243,156,18,.1) 100%);
}

.auth-brand-area { text-align: center; max-width: 380px; }

.auth-brand-icon {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: white; margin: 0 auto 24px;
    box-shadow: 0 10px 35px rgba(211,84,0,.4);
}

.auth-brand-title { font-size: 38px; font-weight: 800; color: white; margin: 0 0 8px; }
.auth-brand-subtitle { font-size: 16px; color: rgba(255,255,255,.55); margin: 0 0 36px; }

.auth-features { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.auth-feature-item {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.75); font-size: 14px;
}
.feature-icon { color: #27AE60; font-size: 16px; flex-shrink: 0; }

.auth-right {
    width: 460px;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 30px;
    background: #f0f2f5;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 44px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.auth-card-header { text-align: center; margin-bottom: 32px; }

.auth-logo-small {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(211,84,0,.35);
}

.auth-card-header h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin: 0 0 4px; }
.auth-card-header p  { font-size: 14px; color: #999; margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group-icon { display: flex; flex-direction: column; gap: 4px; }

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-bg {
    position: absolute; left: 0;
    width: 46px; height: 100%;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    border-radius: 12px 0 0 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; z-index: 2;
}

.form-control-auth {
    padding-left: 58px !important;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    height: 48px;
    font-size: 14px;
    transition: var(--transition);
    width: 100%;
}
.form-control-auth:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211,84,0,.12);
    outline: none;
}

.btn-password-toggle {
    position: absolute; right: 12px;
    background: none; border: none;
    color: #adb5bd; cursor: pointer; font-size: 14px; z-index: 2;
    transition: var(--transition);
}
.btn-password-toggle:hover { color: var(--primary); }

.form-check-auth { display: flex; align-items: center; }
.form-check-label-auth { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: #6c757d; }
.form-check-input { width: 16px; height: 16px; border-radius: 4px !important; cursor: pointer; }

.btn-auth-submit {
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: white; border: none;
    height: 50px; border-radius: 12px; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(211,84,0,.35);
    cursor: pointer;
}
.btn-auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(211,84,0,.45); color: white; }

.auth-footer { text-align: center; margin-top: 20px; color: #adb5bd; font-size: 12px; }

/* =========================================================
   FLASH ALERTS
   ========================================================= */
.alert-toast {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.alert-success { background: #eafaf1; color: #1d8348; border-left: 4px solid #27AE60; }
.alert-danger  { background: #fdedec; color: #922b21; border-left: 4px solid #E74C3C; }

/* =========================================================
   LOADING OVERLAY
   ========================================================= */
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    flex-direction: column;
}
.loading-overlay.active { display: flex; }
.spinner-wrapper { text-align: center; }

/* =========================================================
   SIDEBAR OVERLAY (mobile)
   ========================================================= */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1035;
}

/* =========================================================
   PAGINATION (Bootstrap override)
   ========================================================= */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1.5px solid #dee2e6;
    color: var(--dark);
    font-size: 13px;
    padding: 6px 12px;
    transition: var(--transition);
}
.pagination .page-link:hover       { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.active { display: block; }
    .main-content { margin-left: 0 !important; }
    .auth-left { display: none; }
    .auth-right { width: 100%; }
}

@media (max-width: 767px) {
    .content-wrapper { padding: 16px; }
    .page-card-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .quick-actions-grid { grid-template-columns: 1fr; }
    .cost-summary-section .row { flex-direction: column; }
}

@media (max-width: 575px) {
    .top-navbar { padding: 0 14px; }
    .stat-value { font-size: 28px; }
    .breadcrumb { display: none; }
}
