/* Custom styles to enhance the Bootstrap theme */

/* Completed job styling */
.completed-job {
    text-decoration: line-through;
    opacity: 0.5;
}

.completed-job .card {
    opacity: 0.7;
}

.completed-job .card-header {
    background-color: #6c757d !important;
    color: white !important;
}

.mark-done-checkbox,
.mark-done {
    cursor: pointer;
}


/* Score indicators */
.score-badge {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.score-green {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.score-yellow {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.score-red {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Score gauge container */
.gauge-container {
    position: relative;
    text-align: center;
    margin: 1rem auto;
    max-width: 250px;
}

.gauge-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 1rem;
    color: var(--bs-gray-600);
}

/* Left/Right Panels */
.input-panel {
    background-color: var(--bs-dark); /* Dark navy/grey background for input form */
    border-radius: 0.5rem;
    height: 100%;
}

.result-panel {
    background-color: #0d1117; /* Dark theme background for results */
    border-radius: 0.5rem;
    height: 100%;
}

/* Triage suggestion box */
.triage-suggestion {
    background-color: #212529; /* Dark background matching theme */
    color: #e9ecef; /* Light text for contrast */
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.triage-suggestion:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.triage-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Background utilities to support triage display */
.bg-slate-800 {
    background-color: #1e293b;
}

.bg-slate-700 {
    background-color: #334155;
}

/* Score components section */
.score-components {
    margin-bottom: 1.5rem;
}

/* Call script section */
.call-script {
    background-color: #212529;
    color: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.call-script ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.call-script li {
    margin-bottom: 0.75rem;
}

/* Custom collapsible sections */
.custom-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.custom-collapse-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Lead cards */
.lead-card {
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.lead-card:hover {
    transform: translateY(-5px);
}

.lead-card .card-header {
    font-weight: bold;
}

/* History table */
.table-leads th {
    cursor: pointer;
}

.table-leads th:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sort-indicator {
    margin-left: 0.25rem;
}

/* Stats charts container */
.stats-container {
    height: 300px;
}

/* Form enhancements */
.form-label {
    font-weight: 600;
}

.form-text {
    margin-top: 0.25rem;
}

/* Main content container */
.content-container {
    max-width: 1200px;
    padding: 2rem 0;
}

/* Results section */
.results-section {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1.5rem;
}

@media (max-width: 767.98px) {
    .results-section {
        border-left: none;
        border-top: 4px solid var(--bs-primary);
        padding-left: 0;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Improved mobile layout */
    .gauge-container canvas {
        max-width: 100%;
        height: auto !important;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .alert {
        padding: 0.75rem;
    }
    
    .chart-container {
        height: 180px !important;
    }
    
    .lead-info-list .info-label {
        min-width: 80px;
    }
}

/* Nav pills custom styling */
.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
}

/* Footer styling */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Breakdown chart labels */
.breakdown-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Card header icons */
.card-header-icon {
    margin-right: 0.5rem;
}

/* Lead detail info list */
.lead-info-list {
    list-style: none;
    padding-left: 0;
}

.lead-info-list li {
    padding: 0.25rem 0;
}

.lead-info-list .info-label {
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

/* Score components section styling */
.score-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

/* Collapsible button styling */
button[data-bs-toggle="collapse"] {
    position: relative;
    transition: all 0.2s ease;
}

button[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

button[data-bs-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.2s ease;
}

.list-group-item {
    transition: background-color 0.15s ease;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

@media (max-width: 767.98px) {
    .score-icon {
        width: 32px;
        height: 32px;
    }
    
    .list-group-item {
        padding: 0.5rem 0.75rem;
    }
    
    .list-group-item .mb-1 {
        font-size: 0.9rem;
    }
    
    .list-group-item .small {
        font-size: 0.75rem;
    }
}
