@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&family=Ysabeau:wght@300;400;500;600;700&display=swap');

/* Bulgarian Parliament Dashboard - Custom Styles */

/* Global Font Application (Ysabeau) */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.header-bg,
.js-plotly-plot,
.dash-table-container {
    font-family: 'Ysabeau', sans-serif !important;
}

body {
    font-size: 1.1rem;
}

/* Specific Speech Body Text (Montserrat Light) */
.speech-text {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2c3e50;
}

/* Header Background */
.header-bg {
    /* Gradient overlay for fade-out effect at bottom 10% */
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 90%, #ffffff 100%), url('header_bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 250px;
    /* Make it larger */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Navbar at top */
}

.shadow-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Primary Color: Green (Bootstrap override) */
.btn-primary,
.bg-primary,
.text-primary {
    background-color: #009663 !important;
    /* Flag Green */
    border-color: #009663 !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #007a50 !important;
    border-color: #007a50 !important;
}

.text-primary {
    color: #009663 !important;
    background: none !important;
}

/* Secondary Color: Red (Bootstrap override) */
.btn-secondary,
.bg-secondary,
.text-secondary {
    background-color: #D62612 !important;
    /* Flag Red */
    border-color: #D62612 !important;
    color: white !important;
}

/* Danger also Red */
.bg-danger {
    background-color: #D62612 !important;
}

.text-danger {
    color: #D62612 !important;
}

/* Success also Green */
.bg-success {
    background-color: #009663 !important;
}

/* Navbar overrides */
.navbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.0) 100%) !important;
    border-bottom: none !important;
}

/* Card Styling - Light Theme */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    padding: 10px 15px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 99, 0.25);
    /* Green glow */
    border-color: #009663;
}

/* Tab Styling */
.nav-tabs .nav-link {
    color: #555;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #009663;
    font-weight: 700;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #009663;
    /* Green on hover */
}

/* Utility */
.fs-4 {
    font-size: 1.5rem !important;
}

/* Navbar Link Styling (Pills) */
.nav-pills .nav-link {
    color: #009663 !important;
    font-weight: 500;
}

.nav-pills .nav-link:hover {
    color: #007a50 !important;
}

.nav-pills .nav-link.active {
    background-color: #009663 !important;
    color: white !important;
}

/* Custom Container Max Width */
.content-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Custom Dark Red for Links */
.text-dark-red {
    color: #A01D0D !important;
    /* Darker shade of #D62612 */
}

.text-dark-red:hover {
    color: #80170a !important;
    text-decoration: underline;
}

/* Brighter Red for Links */
.text-bright-red {
    color: #E84A3D !important;
    /* Brighter red, not as harsh as danger */
}

.text-bright-red:hover {
    color: #D62612 !important;
    text-decoration: underline;
}

/* LinkedIn Brand Color */
.text-linkedin {
    color: #0077B5 !important;
}

.text-linkedin:hover {
    color: #005885 !important;
}

/* Buy Me A Coffee Button */
.bmc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFDD00;
    color: #000000 !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: none;
}

.bmc-button:hover {
    background-color: #FFCC00;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.bmc-logo {
    height: 18px;
    width: auto;
}