/* ============================================
   DASHBOARD THEME - BRAND COLORS
   Matte Black Headers with Neon Green Text
   Warm Charcoal Card Backgrounds

   ROLLBACK INSTRUCTIONS:
   To revert to previous styling, simply:
   1. Remove the link to this file from index.html
   2. Or comment out the @import in app.css
   3. Or delete this entire file

   This file does NOT modify any component files,
   making it completely reversible.
   ============================================ */

/* ============================================
   CARD BACKGROUNDS & STYLING
   ============================================ */

/* Bootstrap cards - all dashboards */
.card {
    background-color: #2D2A28 !important;
    border-color: #1A1A1A !important;
}

/* ============================================
   CARD HEADERS - PRIMARY STYLING
   ============================================ */

/* Bootstrap card headers - all dashboards */
.card-header {
    background-color: #1A1A1A !important;
    border-color: #0F0F0F !important;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: #39FF14 !important;
    margin: 0;
}

.card-header {
    color: #39FF14 !important;
}

.card-header i {
    color: #39FF14 !important;
}

/* ============================================
   CARD BODY STYLING
   ============================================ */

.card-body {
    background-color: #2D2A28 !important;
    color: #E0E0E0 !important;
}

/* ============================================
   COLLAPSIBLE DASHBOARD CARDS
   ============================================ */

.card-header button {
    color: #39FF14 !important;
}

.card-header button:hover {
    color: #39FF14 !important;
    background: rgba(57, 255, 20, 0.1) !important;
}

/* ============================================
   BADGE STYLING IN HEADERS
   ============================================ */

.card-header .badge {
    background-color: #39FF14 !important;
    color: #1A1A1A !important;
    font-weight: 600;
}

/* ============================================
   STAT CARDS & METRIC CARDS
   ============================================ */

.stat-card {
    border: 1px solid rgba(57, 255, 20, 0.5) !important;
    border-radius: 6px !important;
    transition: all 0.25s ease-in-out;
}

.stat-card:hover {
    border-color: rgba(57, 255, 20, 0.8) !important;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.2) !important;
}

.metric-card-header {
    background-color: #1A1A1A !important;
    color: #39FF14 !important;
}

/* Info blocks and stat displays */
.info-block,
.stat-block,
.metric-block,
.work-metric,
.planning-metric {
    border: 1px solid rgba(57, 255, 20, 0.5) !important;
    border-radius: 6px !important;
    transition: all 0.25s ease-in-out;
    padding: 15px !important;
}

.info-block:hover,
.stat-block:hover,
.metric-block:hover,
.work-metric:hover,
.planning-metric:hover {
    border-color: rgba(57, 255, 20, 0.8) !important;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.2) !important;
}

/* ============================================
   TABLE HEADERS IN DASHBOARDS
   ============================================ */

.table-light {
    background-color: #1A1A1A !important;
}

.table-light th {
    color: #000000 !important;
    font-weight: 600;
    border-color: #0F0F0F !important;
}

/* ============================================
   DASHBOARD SECTION HEADERS
   ============================================ */

.dashboard-section-header {
    background-color: #1A1A1A !important;
    color: #39FF14 !important;
    border-color: #0F0F0F !important;
}

.dashboard-section-header h2,
.dashboard-section-header h3 {
    color: #39FF14 !important;
}

/* ============================================
   COLLAPSIBLE SECTIONS
   ============================================ */

.collapsible-header {
    background-color: #1A1A1A !important;
    color: #39FF14 !important;
}

.collapsible-header:hover {
    background-color: #2D2D2D !important;
}

/* ============================================
   LIST CARDS - LIGHTER BACKGROUND (PAGE BG COLOR)
   ============================================ */

/* List card container - lighter background (same as page) */
.list-card {
    background-color: #4A4540 !important;
    border-left: 4px solid #39FF14 !important;
    border-top-color: #3A3530 !important;
    border-right-color: #3A3530 !important;
    border-bottom-color: #3A3530 !important;
    transition: border-left-color 0.2s ease-in-out;
}

.list-card .card-body {
    background-color: #4A4540 !important;
}

.list-card:hover {
    border-left-color: #B87333 !important;
}



/* Appointment list items */
.appointment-item.list-card {
    background-color: #4A4540 !important;
    border-left: 4px solid #39FF14 !important;
    border-top-color: #3A3530 !important;
    border-right-color: #3A3530 !important;
    border-bottom-color: #3A3530 !important;
    transition: border-left-color 0.2s ease-in-out;
}

.appointment-item.list-card .card-body {
    background-color: #4A4540 !important;
}

.appointment-item.list-card:hover {
    border-left-color: #B87333 !important;
}

/* Estimate list items */
.estimate-item.list-card {
    background-color: #4A4540 !important;
    border-left: 4px solid #39FF14 !important;
    border-top-color: #3A3530 !important;
    border-right-color: #3A3530 !important;
    border-bottom-color: #3A3530 !important;
    transition: border-left-color 0.2s ease-in-out;
}

.estimate-item.list-card .card-body {
    background-color: #4A4540 !important;
}

.estimate-item.list-card:hover {
    border-left-color: #B87333 !important;
}

/* Job list items */
.job-item.list-card {
    background-color: #4A4540 !important;
    border-left: 4px solid #39FF14 !important;
    border-top-color: #3A3530 !important;
    border-right-color: #3A3530 !important;
    border-bottom-color: #3A3530 !important;
    transition: border-left-color 0.2s ease-in-out;
}

.job-item.list-card .card-body {
    background-color: #4A4540 !important;
}

.job-item.list-card:hover {
    border-left-color: #B87333 !important;
}

/* Unscheduled work order list items */
.unscheduled-item.list-card {
    background-color: #4A4540 !important;
    border-left: 4px solid #39FF14 !important;
    border-top-color: #3A3530 !important;
    border-right-color: #3A3530 !important;
    border-bottom-color: #3A3530 !important;
    transition: border-left-color 0.2s ease-in-out;
}

.unscheduled-item.list-card.border-warning {
    border-left-color: #39FF14 !important;
}

.unscheduled-item.list-card.border-danger {
    border-left-color: #39FF14 !important;
}

.unscheduled-item.list-card .card-body {
    background-color: #4A4540 !important;
}

.unscheduled-item.list-card:hover {
    border-left-color: #B87333 !important;
}

/* Deadline list items */
.deadline-item.list-card {
    background-color: #4A4540 !important;
    border-left: 4px solid #39FF14 !important;
    border-top-color: #3A3530 !important;
    border-right-color: #3A3530 !important;
    border-bottom-color: #3A3530 !important;
    transition: border-left-color 0.2s ease-in-out;
}

.deadline-item.list-card .card-body {
    background-color: #4A4540 !important;
}

.deadline-item.list-card:hover {
    border-left-color: #B87333 !important;
}

/* Bootstrap list group items */
.list-group-item {
    background-color: #4A4540 !important;
    border-left: 4px solid #39FF14 !important;
    border-top-color: #3A3530 !important;
    border-right-color: #3A3530 !important;
    border-bottom-color: #3A3530 !important;
    color: #E0E0E0 !important;
    transition: border-left-color 0.2s ease-in-out;
}

.list-group-item:hover {
    border-left-color: #B87333 !important;
    border-color: #3A3530 !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .card-header {
        padding: 0.75rem !important;
    }

    .card-header h4 {
        font-size: 1rem !important;
    }
}

/* ============================================
   DASHBOARD BUTTONS
   ============================================ */

/* Primary dashboard buttons */
.btn-primary {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.btn-primary:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #3A3A3A !important;
    border-color: #39FF14 !important;
    color: #B87333 !important;
}

/* Secondary buttons */
.btn-secondary {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.btn-secondary:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

/* Outline buttons */
.btn-outline-primary {
    color: #B87333 !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
}

.btn-outline-primary:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

/* Success buttons */
.btn-success {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.btn-success:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

/* Danger buttons */
.btn-danger {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.btn-danger:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

/* Info buttons */
.btn-info {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.btn-info:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

/* Warning buttons */
.btn-warning {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.btn-warning:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

/* Dark buttons */
.btn-dark {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.btn-dark:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

/* ============================================
   ACCESSIBILITY - ENSURE CONTRAST
   ============================================ */

/* Ensure text is readable on copper background */
.card-header {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header i {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SLIDEOUT PANELS - DARK THEME
   ============================================ */

/* Generic slideout panel styling */
.slideout-panel {
    background-color: #2D2A28 !important;
    color: #E0E0E0 !important;
}

.slideout-header {
    background-color: #1A1A1A !important;
    border-bottom: 1px solid #3A3530 !important;
    color: #39FF14 !important;
}

.slideout-header h5,
.slideout-header h4,
.slideout-header h3,
.slideout-header h2,
.slideout-header h1 {
    color: #39FF14 !important;
}

.slideout-content {
    background-color: #2D2A28 !important;
    color: #E0E0E0 !important;
}

.slideout-footer {
    background-color: #1A1A1A !important;
    border-top: 1px solid #3A3530 !important;
    color: #E0E0E0 !important;
}

/* Pull panel styling (Home dashboard) */
.pull-panel {
    background-color: #2D2A28 !important;
    color: #E0E0E0 !important;
}

.pull-panel-header {
    background-color: #1A1A1A !important;
    border-bottom: 1px solid #3A3530 !important;
    color: #39FF14 !important;
}

.pull-panel-header h5,
.pull-panel-header h4,
.pull-panel-header h3 {
    color: #39FF14 !important;
}

.pull-panel-header .btn {
    color: #B87333 !important;
    border-color: rgba(57, 255, 20, 0.6) !important;
}

.pull-panel-header .btn:hover {
    color: #B87333 !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    background-color: rgba(57, 255, 20, 0.1) !important;
}

.pull-panel-body {
    background-color: #2D2A28 !important;
    color: #E0E0E0 !important;
    flex: 1;
    overflow-y: auto;
}

/* ============================================
   TABLE STYLING - DARK THEME
   ============================================ */

/* Dark theme table class - apply to <table> element */
/* Override Bootstrap's .table base styles */
.table.table-dark-theme {
    color: #E0E0E0 !important;
    background-color: transparent !important;
}

.table.table-dark-theme thead {
    background-color: #2D2A28 !important;
}

.table.table-dark-theme thead th {
    background-color: #2D2A28 !important;
    color: #B87333 !important;
    border-color: #3A3530 !important;
    font-weight: 600;
    padding: 0.75rem;
}

.table.table-dark-theme tbody td {
    background-color: #4A4540 !important;
    color: #B87333 !important;
    border-color: #3A3530 !important;
    padding: 0.75rem;
}

.table.table-dark-theme tbody tr {
    background-color: #4A4540 !important;
}

.table.table-dark-theme.table-hover tbody tr:hover {
    background-color: #5A5550 !important;
}

/* Status row colors for dark theme tables */
.table.table-dark-theme.table-success,
.table.table-dark-theme tbody tr.table-success {
    background-color: rgba(57, 255, 20, 0.1) !important;
}

.table.table-dark-theme tbody tr.table-success td {
    background-color: rgba(57, 255, 20, 0.1) !important;
    color: #B87333 !important;
}

.table.table-dark-theme.table-danger,
.table.table-dark-theme tbody tr.table-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.table.table-dark-theme tbody tr.table-danger td {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #B87333 !important;
}

.table.table-dark-theme.table-warning,
.table.table-dark-theme tbody tr.table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.table.table-dark-theme tbody tr.table-warning td {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #B87333 !important;
}

/* Text styling in dark theme tables */
.table.table-dark-theme strong {
    color: #B87333 !important;
}

.table.table-dark-theme .text-muted {
    color: #B87333 !important;
}

/* Slideout text styling */
.slideout-panel label {
    color: #E0E0E0 !important;
}

.slideout-panel input,
.slideout-panel textarea,
.slideout-panel select {
    background-color: #3A3530 !important;
    color: #E0E0E0 !important;
    border-color: #4A4540 !important;
}

.slideout-panel input:focus,
.slideout-panel textarea:focus,
.slideout-panel select:focus {
    background-color: #4A4540 !important;
    color: #E0E0E0 !important;
    border-color: #39FF14 !important;
    box-shadow: 0 0 0 0.2rem rgba(57, 255, 20, 0.25) !important;
}

/* Slideout buttons */
.slideout-panel .btn-primary {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.slideout-panel .btn-primary:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

.slideout-panel .btn-secondary {
    background-color: #3A3530 !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.slideout-panel .btn-secondary:hover {
    background-color: #4A4540 !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

/* Metric items in pull panel */
.metric-item {
    background-color: #3A3530 !important;
    border: 1px solid rgba(57, 255, 20, 0.3) !important;
    border-radius: 4px;
    padding: 0.75rem;
}

.metric-item small {
    color: #B87333 !important;
}

/* Text muted styling in slideouts */
.slideout-panel .text-muted {
    color: #B87333 !important;
}

/* ============================================
   SCHEDULING GRID STYLING - DARK THEME
   ============================================ */

/* Custom dark background for scheduling grids */
.bg-scheduling-dark {
    background-color: #3A3530 !important;
    color: #B87333 !important;
}

/* Scheduled Work Order Items - Override Bootstrap classes */
.scheduled-work-order {
    background-color: #3A3530 !important;
    color: #B87333 !important;
    border: 1px solid #39FF14 !important;
}

.scheduled-work-order.bg-primary {
    background-color: #3A3530 !important;
}

.scheduled-work-order.bg-success {
    background-color: #3A3530 !important;
}

.scheduled-work-order.text-white {
    color: #B87333 !important;
}

.scheduled-work-order .text-white-50 {
    color: #B87333 !important;
}

.scheduled-work-order:hover {
    background-color: #4A4540 !important;
    box-shadow: 0 2px 8px rgba(57, 255, 20, 0.3) !important;
}

/* Override Bootstrap bg-light in scheduling grids */
.day-scheduling-grid .row.bg-light,
.week-scheduling-grid .row.bg-light {
    background-color: #4A4540 !important;
}

.day-scheduling-grid .row.bg-light>div,
.week-scheduling-grid .row.bg-light>div {
    background-color: #4A4540 !important;
    color: #B87333 !important;
    border-color: #3A3530 !important;
}

.day-scheduling-grid .row.bg-light .col-2,
.day-scheduling-grid .row.bg-light .col-3,
.day-scheduling-grid .row.bg-light .col,
.week-scheduling-grid .row.bg-light .col-2,
.week-scheduling-grid .row.bg-light .col-3,
.week-scheduling-grid .row.bg-light .col {
    background-color: #4A4540 !important;
    color: #B87333 !important;
}

/* ============================================
   FORM STYLING - DATA ENTRY SCREENS
   ============================================ */

/* Form container background */
.form-container {
    background-color: #2D2A28 !important;
    border-color: #1A1A1A !important;
}

/* Form labels - copper color */
.form-label {
    color: #B87333 !important;
    font-weight: 600;
}

/* Form inputs, selects, textareas */
.form-control,
.form-select,
textarea.form-control {
    background-color: #3A3530 !important;
    color: #E0E0E0 !important;
    border-color: #4A4540 !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background-color: #4A4540 !important;
    color: #E0E0E0 !important;
    border-color: #39FF14 !important;
    box-shadow: 0 0 0 0.2rem rgba(57, 255, 20, 0.25) !important;
}

.form-control::placeholder {
    color: #8B7355 !important;
}

/* Input group styling */
.input-group-text {
    background-color: #3A3530 !important;
    color: #B87333 !important;
    border-color: #4A4540 !important;
}

/* Validation messages */
.invalid-feedback,
.valid-feedback {
    color: #FF6B6B !important;
}

/* Form group spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Checkbox and radio styling */
.form-check-input {
    background-color: #3A3530 !important;
    border-color: #4A4540 !important;
}

.form-check-input:checked {
    background-color: #B87333 !important;
    border-color: #B87333 !important;
}

.form-check-input:focus {
    border-color: #39FF14 !important;
    box-shadow: 0 0 0 0.2rem rgba(57, 255, 20, 0.25) !important;
}

.form-check-label {
    color: #E0E0E0 !important;
}

/* Form validation summary */
.validation-summary-valid {
    display: none;
}

.validation-summary-errors {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: #FF6B6B !important;
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    color: #FF6B6B !important;
}

/* Form buttons */
.form-container .btn-primary {
    background-color: #1A1A1A !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.form-container .btn-primary:hover {
    background-color: #2D2D2D !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}

.form-container .btn-secondary {
    background-color: #3A3530 !important;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    color: #B87333 !important;
}

.form-container .btn-secondary:hover {
    background-color: #4A4540 !important;
    border-color: rgba(57, 255, 20, 0.9) !important;
    color: #B87333 !important;
}