/* Custom Styles for Pet Boarding System */

/* --- General Body Styles (Optional, adjust as needed) --- */
body {
    padding-top: 70px; /* Adjust if your navbar height changes */
    background-color: #f8f9fa; /* Light background */
}

/* --- Navigation Bar Separator Styles --- */
.nav-separator {
    color: rgba(0,0,0,.55); /* Bootstrap's default nav-link color for light theme */
    padding-right: 0.5rem; /* Matches Bootstrap's .nav-link padding */
    padding-left: 0.5rem;  /* Matches Bootstrap's .nav-link padding */
    display: flex; /* Use flex to align vertically with links */
    align-items: center; /* Center the pipe vertically */
    /* Optional: Fine-tune vertical alignment if needed */
    line-height: 1.5; /* Often matches line-height of links */
}

/* Style for separators if you are using a dark-themed navbar */
.navbar-dark .nav-separator {
    color: rgba(255,255,255,.55); /* White color for dark theme */
}

/* --- Calendar Table Styles (for view_house_calendar.html) --- */
.calendar-table {
    width: 100%;
    table-layout: fixed; /* Ensures equal column widths */
    font-size: 0.85em; /* Smaller font for better fit */
    margin-bottom: 20px; /* Space below calendar */
}
.calendar-table th, .calendar-table td {
    text-align: center;
    vertical-align: middle;
    padding: 2px 1px; /* Reduced padding */
    height: 40px; /* Fixed height for rows */
    white-space: nowrap; /* Prevent wrapping in headers */
    overflow: hidden; /* Hide overflow in cells */
    border: 1px solid #dee2e6; /* Standard Bootstrap table border color */
}
.calendar-table .day-header {
    width: calc(100% / var(--num-days-in-month, 32)); /* This is a fallback, Jinja sets it */
}
.calendar-table .kennel-id-col {
    width: 80px; /* Fixed width for kennel ID column */
    text-align: left;
    padding-left: 5px;
    background-color: #e9ecef; /* Slightly darker background for column header */
    font-weight: bold;
}
.booking-band {
    color: #fff; /* White text on colored band */
    text-shadow: 0 0 2px rgba(0,0,0,0.5); /* For readability */
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.2);
    position: relative; /* For the title/tooltip */
    cursor: help; /* Indicate hover info */
    border-radius: 3px; /* Slightly rounded corners for booking bands */
    display: flex; /* Use flex to center text vertically/horizontally */
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure it fills the cell height */
}
.booking-info {
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if content overflows */
    padding: 0 2px; /* Small padding inside the band */
}
.empty-cell {
    background-color: #f8f9fa; /* Light grey for empty days */
}

/* --- Specific Adjustments for Form Elements --- */
.form-inline .form-group {
    margin-bottom: 0; /* Remove bottom margin for inline forms */
}
.form-inline .btn {
    margin-bottom: 0; /* Align buttons with form elements */
}

/* --- Flashed Messages Styling --- */
.alert {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* General Spinner Style (from view_bookings.html) */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --- Mobile Responsive Adjustments --- */

/* Stack filter controls on small screens (from view_bookings.html) */
@media (max-width: 576px) {
    .booking-filter-controls label,
    .booking-filter-controls .form-control,
    .booking-filter-controls .btn {
        display: block;
        width: 100%;
        margin-top: 5px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* Calendar Table Adjustments (from view_house_calendar.html) */
.calendar-table {
    table-layout: fixed;
    width: 100%;
}
.kennel-header {
    width: 70px;
    text-align: center;
    vertical-align: middle;
}
.day-header {
    width: 35px;
    text-align: center;
}
.kennel-id-cell {
    text-align: center;
    vertical-align: middle;
    background-color: #f8f9fa;
}
.calendar-booking-cell, .calendar-empty-cell {
    height: 75px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.8em;
    color: #212529;
    overflow: hidden;
    padding: 2px;
    border: 1px solid #dee2e6;
}
.calendar-booking-cell {
    cursor: pointer;
    font-weight: bold;
}
.calendar-booking-cell a {
    display: block;
    text-decoration: none;
    padding: 1px 0;
    line-height: 1.1;
}
.calendar-booking-cell a:hover {
    text-decoration: underline;
}
.calendar-empty-cell {
    background-color: #ffffff;
}

/* Make calendar more compact on smaller screens */
@media (max-width: 768px) {
    .day-header {
        font-size: 0.8em;
        padding: 4px 2px;
    }
    .calendar-booking-cell {
        font-size: 0.7em;
        line-height: 1.0;
    }
     .kennel-header {
        width: 60px;
        font-size: 0.8em;
    }
}