/* Import Roboto font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

body {
    font-family: 'Roboto', sans-serif; /* Apply Roboto font to all text */
    background-color: #f5f5f5;
    font-weight: 400; /* Normal weight for regular text */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500; /* Slightly heavier weight for headings */
    color: #333; /* You can adjust the color as needed */
}

.navbar-custom {
    background-color: #E4002B; /* Changed from black to red */
    padding: 10px;
}


.navbar-custom .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    flex-grow: 1;
}

.navbar-toggler {
    margin-left: auto;
}

.navbar-custom a {
    color: #fff;
    text-decoration: none;
}

.content {
    padding: 20px;
}

.card {
    border-radius: 10px;
    padding: 20px;
}

/* Styling for occupancy numbers below the progress bar */
.occupancy-numbers {
    font-size: 2rem; /* Larger font size for clarity */
    font-weight: bold;
    margin-top: 10px; /* Adds spacing between the progress bar and the numbers */
}

.occupancy-percentage.text-success {
    color: #7ddc6f; /* Lighter green color */
}

.occupancy-percentage.text-warning {
    color: #ffc107; /* Amber color */
}

.occupancy-percentage.text-danger {
    color: #dc3545; /* Red color */
}

.occupancy-count {
    color: #333; /* Regular color for the actual count */
}

.progress-bar {
    height: 35px; /* Keep the increased height for the progress bar */
}

.progress {
    height: 35px; /* Match the progress bar height */
}

/* Progress bar color customization */
.progress-bar.bg-success {
    background-color: #7ddc6f !important; /* Lighter green */
}

.progress-bar.bg-warning {
    background-color: #ffc107 !important; /* Amber */
}

.progress-bar.bg-danger {
    background-color: #dc3545 !important; /* Red */
}

.graph-bar {
    background-color: #00b2b9;
    height: 100px;
    border-radius: 5px;
}

.graph-bar.highlight {
    background-color: #f57f3b;
}

.graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 20px 0;
}

.graph-container div {
    flex: 1;
    margin: 0 5px;
}

.day-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.day-buttons button {
    flex: 1;
}

.visitor-count {
    font-size: 1.2rem;
    color: #f57f3b;
}

.day-selector {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.day-selector button {
    flex: 1;
    font-size: 0.9rem;
}

.active-day {
    background-color: var(--bs-primary); /* Changed from blue to red */
    color: white;
}

/* Ensure all text uses Roboto font */
.navbar-custom .logo,
.progress-bar,
.visitor-count,
.nav-link,
.btn {
    font-family: 'Roboto', sans-serif;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .navbar-custom .logo {
        font-size: 1.2rem;
    }

    .graph-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .graph-container div {
        margin-bottom: 10px;
    }

    .day-selector {
        flex-direction: column;
    }

    .day-selector button {
        margin-bottom: 5px;
        font-size: 1rem;
    }
}

/* Custom styles for the dashboard */
@media (max-width: 768px) {
    .day-selector {
        flex-direction: column;
    }

    .day-selector a {
        margin-bottom: 10px;
    }
}

canvas {
    width: 100% !important;
    height: auto !important;
}

.d-none {
    display: none;
}
#second-card {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.btn-icon:hover {
    transform: scale(1.1);
}
/* Button styling */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 1rem; /* Larger clickable area */
    transition: transform 0.2s ease;
}

.btn-icon:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}
.card {
    overflow: visible; /* Ensure content overflow is visible */
}
/* Sliding effect for the graph */
#second-card {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out; /* Smooth slide animation */
}

#second-card.expanded {
    max-height: 1000px; /* Adjust to fit content or use dynamic height */
}
.progress-bar {
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
}