/**
 * Ministry of Finance - Tax Data Repository
 * Custom CSS Styles
 */

/* Override some Bootstrap and AdminLTE defaults */
:root {
    /* Ghana Ministry of Finance colors based on the coat of arms */
    --primary-color: #006b3f; /* Ghana Green */
    --secondary-color: #1a3c6e; /* Dark Blue */
    --accent-color: #fcd116; /* Ghana Gold/Yellow */
    --accent-secondary: #ce1126; /* Ghana Red */
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #fcd116; /* Ghana Gold/Yellow */
    --danger-color: #ce1126; /* Ghana Red */
    --light-color: #f8f9fa;
    --dark-color: #000000; /* Black from the star */
}

/* Body and general styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
}

/* Sidebar customization */
.main-sidebar {
    background-color: var(--secondary-color);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.brand-link {
    border-bottom: 1px solid var(--accent-color);
    background-color: var(--secondary-color);
}

.brand-text {
    font-weight: 600 !important;
}

/* Navbar customization */
.navbar-light {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

/* Content header */
.content-header {
    padding: 15px 0.5rem;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 500;
}

/* Card customization */
.card {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 1rem;
    border-top: 3px solid var(--primary-color);
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
    background-color: rgba(0,0,0,.03);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Form controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #00562f;
    border-color: #004020;
}

/* Tables */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
}

/* DataTables customization */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter, 
.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_processing, 
.dataTables_wrapper .dataTables_paginate {
    color: #333;
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-color);
    color: var(--accent-color) !important;
    border: 1px solid var(--primary-color);
}

/* Dashboard boxes */
.small-box {
    border-radius: 0.25rem;
}

.small-box > .inner {
    padding: 20px;
}

.small-box h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    white-space: nowrap;
    padding: 0;
}

/* Login page customization */
.login-page, .register-page {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffffff 100%);
}

.login-card-body, .register-card-body {
    border-radius: 0.25rem;
}

/* Footer customization */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--accent-color);
    color: var(--secondary-color);
    padding: 1rem;
}

/* Custom utility classes */
.text-sm {
    font-size: 0.875rem !important;
}

.text-md {
    font-size: 1rem !important;
}

.text-lg {
    font-size: 1.25rem !important;
}

.text-xl {
    font-size: 1.5rem !important;
}

.border-top {
    border-top: 1px solid #dee2e6 !important;
}

.border-right {
    border-right: 1px solid #dee2e6 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.border-left {
    border-left: 1px solid #dee2e6 !important;
}

/* Custom styles for tax data forms */
.tax-form label {
    font-weight: 600;
}

.tax-form .form-group {
    margin-bottom: 1.5rem;
}

.tax-form .form-text {
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .small-box h3 {
        font-size: 1.8rem;
    }
}

/* Print styles */
@media print {
    .main-sidebar, .main-header, .main-footer, .no-print {
        display: none !important;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
