/* Premium Design System for ARY News Reports */

:root {
    --primary-color: #2a3042;
    --secondary-color: #32394e;
    --accent-color: #556ee6;
    --text-color: #495057;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --premium-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
    --premium-border-radius: 12px;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: 15.5px;
    background-color: #f4f6f9;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.card-title {
    font-size: 16.5px !important;
}

.page-title-box h4 {
    font-size: 24px !important;
    margin-bottom: 0;
}

/* Cards */
.card {
    border: none !important;
    border-radius: var(--premium-border-radius) !important;
    box-shadow: var(--premium-shadow) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 24px;
}

.card:hover {
    box-shadow: 0 1rem 2rem rgba(18, 38, 63, 0.08) !important;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    border-collapse: separate !important;
    border-spacing: 0 0px !important;
}

.table thead th {
    background-color: #f1f3f7 !important;
    border-bottom: 2px solid #eff2f7 !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    padding: 12px 15px !important;
}

.table tbody td, .table tbody th {
    padding: 15px !important;
    vertical-align: middle !important;
    border-top: 1px solid #eff2f7 !important;
    color: var(--text-color);
    font-weight: 400;
    font-size: 14.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(85, 110, 230, 0.04) !important;
}

/* Buttons */
.btn {
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.btn-dark {
    background: linear-gradient(135deg, #2a3042 0%, #1c212d 100%) !important;
    border: none !important;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 48, 66, 0.25) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #556ee6 0%, #3b4db0 100%) !important;
    border: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 110, 230, 0.25) !important;
}

.btn-export {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%) !important;
    color: white !important;
    border: none !important;
}

/* Specific component fixes */
.mini-stats-wid .avatar-title, .mini-stats-wid .bg-primary {
    background-color: rgba(85, 110, 230, 0.1) !important;
    color: #556ee6 !important; /* Explicit blue */
}

/* Ensure Icons always use their library font */
[class^="bx-"], [class*=" bx-"], .bx, .mdi, [class^="mdi-"], [class*=" mdi-"], .fas, .fa, [class^="fa-"], [class*=" fa-"] {
    font-family: inherit !important; /* Let the library handle it */
}

/* Boxicons specific restoration if needed */
.bx {
    font-family: 'boxicons' !important;
}
/* Material Design Icons restoration */
.mdi::before {
    font-family: "Material Design Icons" !important;
}

.mini-stat-icon {
    width: 48px;
    height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* DataTables Overrides */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    border-radius: 4px !important;
}

/* Custom styles for the specified pages */
.page-title-box {
    padding-bottom: 24px;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-item.active {
    color: #74788d;
    font-size: 14px;
}

/* Top Navigation Menu Items */
.topnav .navbar-nav .nav-link {
    font-size: 15px !important;
    font-weight: 500;
}

/* Chart Enhancements */
canvas {
    max-width: 100%;
}

.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 100%;
}

/* Custom tooltip styling for charts */
.chartjs-tooltip {
    background: rgba(42, 48, 66, 0.9) !important;
    border-radius: 8px !important;
    color: white !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
