/* public/css/custom.css */

/* General Body and Typography */
body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f7f6; /* Light gray background */
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50; /* Darker headings */
}

/* Sidebar */
.sidebar {
    background-color: #2c3e50 !important; /* Darker sidebar */
    color: #ecf0f1 !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.sidebar .nav-link {
    color: #ecf0f1 !important;
    transition: background-color 0.2s ease;
}
.sidebar .nav-link:hover {
    background-color: #34495e !important;
}
.sidebar .nav-link.active {
    background-color: #3498db !important; /* Primary blue for active link */
    color: white !important;
}
.sidebar .user-info {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.sidebar hr {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Main Content Area */
.main-content {
    background-color: #f4f7f6;
}

/* Cards - General Styling */
.dashboard-card, .card {
    border: none; /* Remove default border */
    border-radius: 0.75rem; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff; /* White background for cards */
}
.dashboard-card:hover, .card:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.dashboard-card .card-header, .card .card-header {
    background-color: #ecf0f1; /* Light gray header */
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #2c3e50;
    padding: 1rem 1.5rem;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}
.dashboard-card .card-body, .card .card-body {
    padding: 1.5rem;
}

/* Specific Card Overrides */
.dashboard-card.overall-score-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); /* Primary blue gradient */
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.dashboard-card.overall-score-card .card-header {
    background-color: rgba(255,255,255,0.15);
    border-bottom: none;
    color: white;
}
.dashboard-card.overall-score-card .display-1 {
    font-size: 4.5rem;
    font-weight: 700;
}
.dashboard-card.challenge-card {
    border: 1px solid #f39c12; /* Orange border */
    background-color: #fff8e1; /* Light orange background */
}
.dashboard-card.challenge-card .card-header {
    background-color: #f39c12;
    color: white;
}
.dashboard-card.gap-card {
    border: 1px solid #e74c3c; /* Red border */
    background-color: #fdeded; /* Light red background */
}
.dashboard-card.gap-card .card-header {
    background-color: #e74c3c;
    color: white;
}
.dashboard-card.tip-card {
    border: 1px solid #1abc9c; /* Green border */
    background-color: #e8f8f5; /* Light green background */
}
.dashboard-card.tip-card .card-header {
    background-color: #1abc9c;
    color: white;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px; /* Consistent height */
    width: 100%;
    padding: 1rem;
}

/* Filter Section */
#dashboard-filters {
    background-color: #ecf0f1 !important;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}
#dashboard-filters h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
}
.form-check-inline {
    margin-right: 1rem;
}
.form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

/* File List Items */
.file-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    background-color: #34495e; /* Darker background for list items */
    border: 1px solid #495057;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.file-list-item:hover {
    background-color: #3b536b;
    border-color: #5a6a7d;
}
.file-list-item.active {
    background-color: #3498db; /* Primary blue for active item */
    border-color: #3498db;
    color: white;
}
.file-list-item.active .file-name,
.file-list-item.active .file-date,
.file-list-item.active .file-controls i,
.file-list-item.active .file-controls a {
    color: white !important;
}
.file-link {
    color: #ecf0f1 !important;
}
.file-name {
    font-weight: 500;
}
.file-date {
    color: #bdc3c7 !important;
}
.file-controls i, .file-controls a {
    color: #bdc3c7 !important;
}
.file-controls .dropdown-toggle {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}
.file-controls .dropdown-toggle:hover {
    background-color: rgba(255,255,255,0.2);
}
.file-controls .dropdown-menu {
    background-color: #34495e;
    border: 1px solid #495057;
}
.file-controls .dropdown-item {
    color: #ecf0f1;
}
.file-controls .dropdown-item:hover {
    background-color: #3b536b;
}

/* Transcript & Timeline Styling */
.transcript-segment {
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.transcript-segment:hover {
    background-color: #f8f9fa;
}
.transcript-segment.highlight {
    background-color: #fff3cd !important; /* Light yellow for active segment (Warning color) */
    border-left: 4px solid #ffc107;
}
.transcript-time {
    color: #7f8c8d;
    font-size: 0.85rem;
    min-width: 50px;
    display: inline-block;
}
.transcript-speaker {
    color: #2c3e50;
    font-weight: 600;
}
.transcript-text {
    color: #34495e;
}

/* Timeline vertical line */
.timeline {
    border-left: 3px solid #e9ecef;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    position: relative;
}

/* Alerts */
.alert-info { background-color: #e0f7fa; border-color: #00bcd4; color: #006064; }
.alert-success { background-color: #e8f8f5; border-color: #1abc9c; color: #117a65; }
.alert-warning { background-color: #fff8e1; border-color: #f39c12; color: #8d6e63; }
.alert-danger { background-color: #fdeded; border-color: #e74c3c; color: #c0392b; }

/* Buttons */
.btn-primary { background-color: #3498db; border-color: #3498db; }
.btn-primary:hover { background-color: #2980b9; border-color: #2980b9; }
.btn-success { background-color: #2ecc71; border-color: #2ecc71; }
.btn-success:hover { background-color: #27ae60; border-color: #27ae60; }
.btn-danger { background-color: #e74c3c; border-color: #e74c3c; }
.btn-danger:hover { background-color: #c0392b; border-color: #c0392b; }
.btn-warning { background-color: #f39c12; border-color: #f39c12; color: white; }
.btn-warning:hover { background-color: #e67e22; border-color: #e67e22; }
.btn-info { background-color: #0dcaf0; border-color: #0dcaf0; }
.btn-info:hover { background-color: #0a98b5; border-color: #0a98b5; }
.btn-secondary { background-color: #95a5a6; border-color: #95a5a6; }
.btn-secondary:hover { background-color: #7f8c8d; border-color: #7f8c8d; }

/* Form elements */
.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Custom Scrollbar for Transcript & Timeline */
.card-body::-webkit-scrollbar {
    width: 8px;
}
.card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.card-body::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}
.card-body::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}