/* File: assets/css/main.css */

/* Colors */
:root {
    --primary-teal: #00AC9E;
    --primary-gold: #FCC763;
    --border-color: #6c757d;
    --hover-bg: #e8f8ff;
    --text-dark: #333;
}

/* Headers */
h1 {
    font-size: 2.5rem !important;
    font-weight: 600 !important;
    color: black !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--primary-gold) !important;
}

h3, h4 {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
}

/* Dropdowns */
.form-control {
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    padding: 0.0rem 0.35rem !important;
    transition: border-color 0.2s ease !important;
    font-size: 1rem !important;
}

.form-control:focus {
    border-color: var(--primary-teal) !important;
    box-shadow: 0 0 0 1px rgba(0, 172, 158, 0.1) !important;
    outline: none !important;
}

/* Enhanced buttons */
.btn-primary {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: #000000 !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    background-color: #e8f8ff !important;
    transform: translateY(-1px) !important;
}

.btn-primary.active {
    background-color: #c3eeff !important;
    border-color: #000000 !important;
    color: #000000 !important;
}

.btn-success {
    background-color: #cfffd9 !important;
    border-color: black !important;
    color: #000000 !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
}

.btn-success:hover {
    background-color: #a4d6ae !important;
}

.btn-info {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
}

/* Table row hover */
tbody tr {
    transition: background-color 0.15s ease !important;
}

tbody tr:hover {
    background-color: var(--hover-bg) !important;
}

/* Enhanced tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border-color) !important;
    margin-bottom: 1.5rem !important;
}

.nav-tabs .nav-link {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s ease !important;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary-gold) !important;
    color: var(--primary-teal) !important;
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-teal) !important;
    color: var(--primary-teal) !important;
    background-color: transparent !important;
}

/* Month header (ops) */
.month-header {
    background: linear-gradient(to right, #00958a, #ffffff) !important;
}

.month-header h4 {
    color: #FCC763 !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Info selector (ops) */
.info-selector {
    background: #f8f9fa !important;
    padding: 0.75rem 1rem !important;
    border-radius: 6px !important;
    margin-bottom: 1rem !important;
    border: 1px solid var(--border-color) !important;
}

.info-btn {
    background-color: white !important;
    border: 1px solid var(--border-color) !important;
    color: #000000 !important;
    padding: 0.375rem 1rem !important;
    margin-right: 0.5rem !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.info-btn:hover {
    background-color: #e8f8ff !important;
    transform: translateY(-1px) !important;
}

.info-btn.active {
    background-color: #c3eeff !important;
    border-color: #000000 !important;
}

/* Expand (ops) */
.expand-btn {
    cursor: pointer !important;
    background: rgb(43, 100, 255) !important;
    color: white !important;
    border: none !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: background 0.2s ease !important;
}

.expand-btn:hover {
    background: rgb(0, 68, 255) !important;
}

/* Responsive  */
@media (max-width: 768px) {
    h1 { 
        font-size: 1.5rem !important; 
    }
    
    .btn-primary, .btn-success, .btn-info {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
}

/* Print */
@media print {
    h1 {
        border-bottom: 2px solid #000 !important;
        color: #000 !important;
    }
}

/* Sorting */

#csvDataTable thead th {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

#csvDataTable thead th:hover {
    background-color: #f0f0f0;
}

#csvDataTable thead th[data-sort] {
    font-weight: bold;
}

#csvDataTable thead th:last-child {
    cursor: default;
}

#csvDataTable thead th:last-child:hover {
    background-color: transparent;
}

.no-sort {
    pointer-events: none;
    cursor: default;
}