/* styles/main.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

/* --- SUPER RESPONSIVE ENHANCEMENTS START --- */
:root {
    --responsive-padding: clamp(0.5rem, 2vw, 2rem);
    --responsive-gap: clamp(0.5rem, 2vw, 2rem);
    --responsive-radius: clamp(8px, 2vw, 16px);
}

html {
    font-size: 16px;
}

body {
    font-size: 1rem;
}

header,
.menu-items,
section,
.registration-container,
.login-container,
.dashboard-container,
.table-section,
.gender-resolution-section {
    padding: var(--responsive-padding);
    border-radius: var(--responsive-radius);
}

.menu-items {
    width: 100%;
    margin-top: 70px;
    display: none;
    flex-direction: column;
    padding: var(--responsive-padding);
    justify-content: space-between;
    background-color: #1b5e20;
    z-index: 1000;
    position: fixed;
}

@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    .menu-items {
        margin-top: 60px;
        padding: 1rem 0.5rem;
    }
}

.card,
.feedback-card,
.stat-box {
    border-radius: var(--responsive-radius);
    padding: var(--responsive-padding);
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 480px) {

    .card,
    .feedback-card,
    .stat-box {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
}

.status-badge {
    font-size: clamp(0.7rem, 2vw, 1rem);
    padding: 0.2em 0.7em;
}

.action-btn,
.form-button,
.contact-me-button {
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: 0.5em 1em;
    min-height: 44px;
}

.dialog-content {
    width: 100%;
    max-width: 95vw;
    padding: var(--responsive-padding);
}

@media (max-width: 400px) {
    .dialog-content {
        padding: 0.5rem;
    }
}

/* --- SUPER RESPONSIVE ENHANCEMENTS END --- */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: white;
}

.badge {
    color: green;
    background-color: yellow;
    padding: .3em;
    font-weight: bolder;
}

.localization {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: max-content;
}

.localization select {
    width: max-content;
    color: #000;
    padding: .5em;
    background-color: transparent;
    outline: none;
    border: none;
}

.above-divider {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.alert {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.alert h2 {
    color: red;
}

.above-divider img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    padding: .5em;
}

form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

form p {
    margin: 10px 0;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Header styles (navigation bar) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1b5e20;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

header h1 {
    margin: 0;
    padding-left: 20px;
    font-size: 24px;
}

header img {
    width: 40px;
    height: 40px;
}

.menu-items {
    width: 100%;
    margin-top: 70px;
    display: none;
    /* Initially hidden */
    flex-direction: column;
    padding: 1em;
    justify-content: space-between;
    background-color: #1b5e20;
    z-index: 1000;
    /* Ensure it appears above other elements */
    position: fixed;
    /* or fixed, depending on your layout */
}

.menu-items a {
    padding: .5em;
    font-weight: bolder;
    font-size: large;
    color: white;
    text-decoration: none;
}

.menu-items #phone-change-lang-link {
    padding: .5em;
    font-weight: bolder;
    font-size: large;
}

.theme-toggler {
    background-color: #1B5E20;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 5px;
    width: max-content;
}

.theme-toggler:hover {
    background-color: #00c853;
}

#light-theme {
    display: none;
}

/* Menu stuff start */

#open-menu {
    display: block;
}

#close-menu {
    display: none;
}

/* Menu stuff end */

/* Section styles */
section {
    padding: 50px 0;
    margin: 0 auto;
}

section h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.divider {
    background-color: #1B5E20;
    height: 2px;
    width: 100%;
    border-radius: 45px;
}

.general {
    display: flex;
    flex-direction: row;
    background-image: url("../icons/helpdesk.webp");
    background-position: center;
    background-size: cover;
    border: 0;
    padding: 0;
    top: 0;
    left: 0;
}

.right {
    background: linear-gradient(to right, #2E7D32, white);
}

.quote {
    font-family: 'Playfair Display', serif;
    /* Fancy font family */
    font-size: 2.5em;
    /* Large font size */
    color: #000;
    /* Text color */
    margin: 20px;
    padding: 2em;
    background-color: transparent;
    text-align: center;
    /* Center the text */
}

.service-providers {
    background-color: #263238;
    bottom: 0;
    padding: 2em;
}

.registration-form {
    background-color: #fff;
}

.registration-container {
    max-width: 400px;
    margin: 10px auto;
    padding: 20px;
    border: #1B5E20 1px solid;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#registration-title {
    text-align: center;
    font-size: large;
    color: #2e7d32;
    /* Dark green */
}

.login-container {
    max-width: 400px;
    margin: 10px auto;
    padding: 20px;
    border: #1B5E20 1px solid;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#login-title {
    text-align: center;
    font-size: large;
    color: #2e7d32;
    /* Dark green */
}

.form-input {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    background-color: #fff;
    color: #1B5E20;
}

.pass-div {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

#pass-visibility {
    cursor: pointer;
    color: #1B5E20;
}

#success {
    background-color: #4CAF50;
    text-align: center;
}

.pass-input {
    outline: none;
    border: none;
    background-color: #fff;
    color: #1B5E20;
}

.form-input:focus {
    border-color: #66bb6a;
    /* Lighter green */
}

.form-button {
    width: 100%;
    padding: 10px;
    background-color: #4caf50;
    /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-button:hover {
    background-color: #45a049;
    /* Darker green */
}

.contact-me-button {
    width: 100%;
    padding: 10px;
    background-color: #1B5E20;
    /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: max-content;
    cursor: pointer;
}

.contact-me-button:hover {
    background-color: #45a049;
    /* Darker green */
}

.theme {
    display: flex;
    justify-content: flex-end;
    margin: 5px;
}

.login-link {
    color: #00c853;
    text-align: center;
}

.login-link a {
    color: #1B5E20;
}

.register-link {
    color: #00c853;
    text-align: center;
}

.forgot-password {
    color: #00c853;
    text-align: center;
}

.register-link a {
    color: #1B5E20;
}

.dashbody {
    height: 100%;
    margin: 0;
    margin-top: 30px;
    margin-left: 10px;
}

.title-feedback {
    width: 100%;
    font-size: 28px;
    text-align: center;
}

.tab-section {
    display: flex;
    margin: 0;
    margin-top: auto;
    height: 100vh;
    /* Full height of the viewport */
}

.left-tabs {
    display: flex;
    margin: 0;
    padding: 1em;
    flex-direction: column;
    min-width: max-content;
    border-right: 1px solid #00c853;
}

.tab-button {
    padding: 15px;
    /* Increased padding for a larger clickable area */
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    color: #000;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    /* Center align items vertically */
}

.online-status {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin-top: 20px;
    margin-left: 320px;
    border: #333 solid .5px;
}

.tab-button span {
    margin-right: 10px;
    /* Space between the icon and the text */
}

.tab-button p {
    margin: 0;
    /* Remove default margin for the paragraph */
    font-size: 16px;
    /* Adjust font size as needed */
}

.tab-button.active {
    background-color: #45a049;
    color: white;
}

.tab-button:hover {
    color: #00c853;
    background-color: #e0e0e0;
    /* Highlight on hover */
}

.right-tabs {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: max-content;
    /* Stack content vertically */
}

.tab-content {
    display: none;
    /* Hide all tab content by default */
    flex-grow: 1;
    /* Allow content to take full height */
    overflow: auto;
}

.tab-content.active {
    display: block;
    /* Show the active tab content */
}

#messages-content {
    width: 100%;
    overflow-x: hidden;
}

#home-content {
    max-height: max-content;
    overflow-y: auto;
    overflow-x: hidden;
    /* margin-top: 30px; */
}

.error {
    text-align: center;
    color: red;
    background-color: #E57373;
}

#spinner {
    position: fixed;
    /* Fixed positioning to keep it in view */
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

/* User Info Card Styling */
#user-info-card {
    background-color: #f9f9f9;
    border: 1px solid #00c853;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#user-info-card h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

#user-info-card p {
    font-size: 16px;
    color: #666;
}

/* Settings Section Styling */
#settings-section {
    background-color: #fff;
    border: 1px solid #00c853;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#settings-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

#user-info-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

/* Individual Settings Items */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.setting-item label {
    font-size: 16px;
    color: #333;
}

/* Toggle Buttons Styling */
.toggle-button {
    width: 50px;
    height: 25px;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    background-color: #ddd;
    outline: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-button:checked {
    background-color: #28a745;
    /* Green for active */
}

.toggle-button::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-button:checked::before {
    transform: translate
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch .toggle-settings {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.toggle-settings:checked+.slider {
    background-color: #4CAF50;
}

.toggle-settings:focus+.slider {
    box-shadow: 0 0 1px #4CAF50;
}

.toggle-settings:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Service Providers Container */
.service-providers-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
}

/* Each Row */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cover {
    display: flex;
    flex-direction: column;
}

/* Service Provider Cards - Modern Update */
.card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0.5rem;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(33.33% - 1rem);
    box-sizing: border-box;
}

/* PEMA Provider Special Styling */
.card.pema-card {
    background: #fff;
    border-left: 4px solid #fff;
}

.provider-name {
    font-size: 1.4rem;
    color: #1B5E20;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.provider-name::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #4CAF50;
    margin: 0.5rem 0;
    border-radius: 2px;
}

.provider-contact {
    position: relative;
    padding-left: 24px;
    margin: 0.5rem 0;
    color: #616161;
    font-size: 0.95rem;
}

.provider-contact::before {
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    color: #2E7D32;
    font-size: 1.1rem;
}

.provider-contact:nth-of-type(1)::before {
    content: 'call';
}

/* Phone */
.provider-contact:nth-of-type(2)::before {
    content: 'mail';
}

/* Email */
.provider-contact:nth-of-type(3)::before {
    content: 'location_on';
}

/* Location */
.provider-contact:nth-of-type(4)::before {
    content: 'person';
}

/* Provider name (if needed) */

.divider {
    background: linear-gradient(90deg, transparent, #2E7D32, transparent);
    height: 1px;
    margin: 1.5rem 0;
}

.filter-div {
    width: 99%;
    display: flex;
    align-items: center;
    border: solid 1px #000;
    margin: 10px;
    border-radius: 50px;
    padding: .2em;
    border: 1px solid #000;
    color: #fff;
}

.home-card {
    background-image: url("../icons/helpdesk.webp");
    background-color: #fff;
    color: #000;
    background-position: center;
    background-size: cover;
    width: 100%;
    margin: 20px;
    padding: .5em;
    border-radius: 5px;
    border: 1px solid #000;
}

.filter {
    background-color: transparent;
    outline: none;
    border: none;
    padding: 1em;
    font-size: medium;
    color: #00c853;
}

filter::placeholder {
    color: #000;
}

.filter-div span {
    color: #1b5e20;
    margin: .2em;
}

.filter-div input::placeholder {
    color: #000;
    /* Very light gray for high contrast */
    opacity: 1;
    /* Ensure full opacity */
}

.filter-div input {
    width: 100%;
    outline: none;
    background-color: transparent;
    padding: .5em;
    color: #000;
}

.parameter {
    padding: .8em;
    margin: 2px;
    background-color: #4CAF50;
    outline: none;
    border: none;
    color: white;
    border-radius: 5px;
}

.parameter-select {
    padding: .95em;
    margin: 2px;
    background-color: #4CAF50;
    outline: none;
    border: none;
    color: white;
    border-radius: 5px;
}

#filter-summary {
    background-color: #4caf50;
    border-radius: 5px;
    padding: .5em;
    color: white;
    margin: 2px;
    cursor: pointer;
}

.feedback-card {
    background-image: url("/icons/messages.webp");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: .5em;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 10px;
    color: #000;
}

.feedback-card .phone,
.feedback-card .email,
.feedback-card .name {
    font-size: smaller;
    color: #666;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.download {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: linear-gradient(90deg, #1b5e20 70%, #2196F3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.3em 0.8em;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(34,34,34,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    margin: 0.5em 0;
    min-width: 0;
}

.download:hover {
    background: linear-gradient(90deg, #2196F3 70%, #1b5e20 100%);
    box-shadow: 0 4px 16px rgba(34,34,34,0.14);
}

.download .material-symbols-outlined {
    font-size: 1.2em;
    margin-right: 0.2em;
}

.download p {
    margin: 0;
    font-size: 0.95em;
}

.summary-container {
    height: max-content;
}

.circular {
    background: conic-gradient(from 60deg, #0c3e19 0deg 320deg, white 0deg 360deg);
    height: 80px;
    /* Outer circle height */
    width: 80px;
    /* Outer circle width */
    border-radius: 50%;
    /* Make it a perfect circle */
    margin: 15px;
    padding: .5em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Position relative for absolute positioning of inner div */
}

.total-number {
    background-color: #fff;
    border-radius: 50%;
    /* Make it a perfect circle */
    height: 60px;
    /* Inner circle height */
    width: 60px;
    /* Inner circle width */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    /* Position absolute to center it within the circular div */
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust position to center */
}

.canvasa-1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 1290px;
    height: 300px;
    margin-top: 10px;
    padding-inline: .5em;
    border-radius: 15px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.canvasa-2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1290px;
    height: max-content;
    margin-top: 10px;
    padding-inline: .5em;
    border-radius: 15px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.canvasa-2 canvas {
    width: 20px;
    height: 20px;
}

.canvasa-3 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 1290px;
    height: 300px;
    margin-top: 10px;
    padding-inline: .5em;
    border-radius: 15px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

/* Alert Box Styles */
.alert-container {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff4d4d;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: none;
    /* Hidden by default */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
}

.alert-container button {
    background-color: white;
    color: #ff4d4d;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 5px;
}

.alert-container button:hover {
    background-color: #ddd;
}

.show-map {
    display: flex;
    flex: column;
    height: max-content;
    width: 100%;
    color: blue;
    padding: .5em;
}

@media print {

    /* Styles for print */
    body {
        font-size: 12px;
        /* Adjust font size for print */
    }

    /* Hide elements that should not be printed */
    .no-print {
        display: none;
    }
}

#pdf-content {
    display: block !important;
    /* Ensure the content is visible */
}

/* Ensure cards are responsive on smaller screens */
@media (max-width: 768px) {
    .service-providers-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .card {
        flex: 1 1 100%;
        margin: 0.5rem 0;
        min-width: unset;
    }

    .feedback-card {
        background-position: right;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .service-providers-container {
        margin-top: 5px;
    }

    .card {
        padding: 1rem;
    }

    .divider {
        margin: 0.8rem 0;
    }
}

/* Responsive styling for small screens */
@media (max-width: 600px) {
    .tab-section {
        flex-direction: column;
        margin-top: 40px;
        /* Stack tabs on small screens */
    }

    #home-content {
        max-height: max-content;
        overflow-y: auto;
        margin-top: 30px;
        margin-bottom: 100px;
        overflow-y: hidden;
        width: 350px;
        margin-left: -5px;
    }


    #messages-content {
        width: 350px;
        overflow-x: hidden;
    }

    .right-tabs {
        flex-grow: 1;
        padding: 1px;
        display: flex;
        flex-direction: column;
    }

    .left-tabs {
        order: 2;
        border-right: none;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: #00c853;
        border-radius: 45px;
        padding: .3em;
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        width: calc(100% - 40px);
    }

    .tab-button {
        align-items: center;
        width: max-content;
    }

    .tab-button p {
        display: none;
    }

    .tab-button.active {
        background-color: #45a049;
        color: white;
        border-radius: 45px;
    }

    #user-info-card {
        background-color: #f9f9f9;
        border: 1px solid #00c853;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: left;
        width: 100%;
    }

    .registration-container {
        max-width: 350px;
        margin: 10px auto;
        padding: 20px;
        border: #1B5E20 1px solid;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .login-container {
        max-width: 340px;
        margin: 10px auto;
        padding: 20px;
        border: #1B5E20 1px solid;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .filter-div {
        width: 90%;
        display: flex;
        align-items: center;
        border: solid 1px #000;
        margin: 10px;
        border-radius: 50px;
        padding: .2em;
    }

}

@media (max-width: 768px) {
    .nav-items {
        display: none;
    }

    .general {
        display: flex;
        background-image: none;
        flex-direction: column;
    }

    .quote {
        font-family: 'Playfair Display', serif;
        /* Fancy font family */
        font-size: 1.5em;
        /* Large font size */
        color: #000;
        /* Text color */
        margin: 10px;
        padding: 1em;
        background-color: transparent;
        text-align: center;
        /* Center the text */
    }

    .service-providers {
        background-color: #263238;
        bottom: 0;
        padding: .5em;
    }

    .contact-me-button {
        width: 100%;
    }

    .right {
        margin-top: 20px;
        padding-inline: .5em;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        background: linear-gradient(to bottom, #83b685, white);
    }

    .left {
        color: #fff;
    }

    section {
        padding: 30px 0;
        margin: 0 auto;
    }

    .menu-items {
        display: flex;
        flex-direction: column;
        position: fixed;
        margin-top: 58px;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #1b5e20;
        color: white;
        padding: 15px;
        z-index: 1000;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    }

    .theme-toggler {
        width: max-content;
    }

    .menu-items {
        display: none;
    }

    .menu-items a {
        display: flex;
        flex-direction: column;
        margin-top: .5em;
        margin-bottom: .5em;
    }

    #open-menu {
        display: block;
    }
}

/* Dashboard Layout Styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-charts-section,
.bottom-charts-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin-bottom: 1rem;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.table-section {
    margin-top: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-section h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

.report-table th,
.report-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
}

.report-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    text-align: left;
}

.report-table tr:hover {
    background-color: #f8f9fa;
}

.no-data-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .top-charts-section,
    .bottom-charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .chart-container {
        height: 250px;
    }

    .table-section {
        overflow-x: auto;
    }
}

/* Remove previous canvas styling */
.canvasa-1,
.canvasa-2,
.canvasa-3 {
    display: none;
}

.dashboard-container {
    margin-bottom: 2rem;
}

.top-charts-section,
.bottom-charts-section {
    margin-bottom: 2rem;
}

.middle-charts-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.statistics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-box h4 {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-box p {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .statistics-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .middle-charts-section {
        grid-template-columns: 1fr;
    }

    .statistics-container {
        grid-template-columns: 1fr;
    }
}

.gender-resolution-section {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gender-resolution-section .section-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.gender-resolution-section .chart-container {
    height: 400px;
    /* Taller height for better visibility */
    margin-bottom: 0;
    /* Remove bottom margin as section already has padding */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gender-resolution-section {
        padding: 1rem;
    }

    .gender-resolution-section .chart-container {
        height: 300px;
    }
}

.provider-contact.phone-contact::before {
    content: 'call';
    color: #2196F3;
    /* Blue for phone */
}

.provider-contact.email-contact::before {
    content: 'mail';
    color: #D32F2F;
    /* Red for email */
}

.provider-contact.location-contact::before {
    content: 'location_on';
    color: #43A047;
    /* Green for location */
}