/* CUSTOM BOOTSTRAP */

@media (min-width: 768px) { /* Medium screens and larger */
    .custom-mt-md {
        margin-top: 80px !important; /* Slightly larger than mt-md-5 */
    }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 10px 20px;
}

/* SIDEBAE */

#sidebar {
    padding-top: 60px;
}

#mobileActions {
    margin-top: 70px;
}

/* ************* CALENDAR VIEW STYLES ************* */

/* Table structure */
.table {
    width: 100%;
    border-collapse: collapse;
}

/* Center table headers and remove borders */
.table thead th {
    text-align: center;
    border: none;
    font-weight: bold;
}

/* Ensure all calendar cells have the same height */
.table td {
    vertical-align: top;
    padding: 0;
    min-height: 100px; /* Adjust for uniform cell height */
    position: relative;
}

/* Bootstrap Card Styling for Each Calendar Cell */
.calendar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 5px;
    padding: 8px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Ensure content inside card aligns in rows */
.calendar-card .row {
    flex-grow: 1;
}

/* Position Day Number in Upper Left */
.calendar-card .day-number {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}

/* Highlight Selected Date */
.selected-date .calendar-card {
    background-color: #007bff !important;
    color: white !important;
    font-weight: bold;
    border-radius: 5px;
}

/* Dimmed previous/next month days */
.dimmed-date .calendar-card {
    background: #f8f9fa;
    color: #aaa;
}

/* Daily View Styling */
.daily-card {
    min-height: 200px; /* Ensures space for additional details */
    border-radius: 5px;
    padding: 16px;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensures title has proper formatting */
.daily-title {
    font-size: 20px;
    font-weight: bold;
}


/* Ensure Calendar Adjusts for Small Screens */
@media (max-width: 768px) {
    .meal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ************* PASSWORD REQUIREMENTS ************* */
#passwordRequirements {
    display: none;
    margin-top: 10px;
    font-size: 0.9rem;
}

#passwordRequirements li {
    transition: all 0.3s;
}

.text-danger i {
    color: red;
}

.text-success i {
    color: green;
}