
/* Google Font: Sarabun */
body {
    font-family: 'K2D', sans-serif;
    background-color: #f8f9fa; /* Lighter grey background */
}

/* Custom dark blue color */
.bg-dark-blue {
    background-color: #003399 !important;
}

/* Header and Footer Styling */
.navbar-brand {
    font-weight: 500;
}
.footer {
    font-size: 0.9rem;
}

/* General Card Styling */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.card-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
    font-weight: 500;
}

/* --- Main Calendar Page --- */
.fc-toolbar-title {
    font-size: 1.5em !important;
    font-weight: 500;
}
.fc-daygrid-event {
    cursor: pointer;
    border-radius: 4px;
    padding: 3px 5px;
    border: none;
    font-size: 0.85em;
    color: white !important; /* Force text color to be white */
}
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.legend-color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
}
/* Removed event-dot styling as it's no longer used */


/* --- Admin Panel Redesign --- */
#layoutSidenav_content {
    background-color: #f8f9fa;
}
.sb-topnav {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.sb-sidenav-dark {
    background: #123456; /* A slightly different, modern blue */
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link {
    color: rgba(255, 255, 255, 0.65);
    padding: 0.85rem 1.5rem;
    transition: all 0.2s ease-in-out;
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-nav-link-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease-in-out;
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255, 0.05);
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover .sb-nav-link-icon {
    color: #fff;
}
.sb-sidenav-dark .sb-sidenav-menu .nav .nav-link.active {
    color: #fff;
    font-weight: 500;
    background-color: #007bff; /* Highlight color */
}
.sb-sidenav-dark .sb-sidenav-menu .nav .nav-link.active .sb-nav-link-icon {
    color: #fff;
}
.info-card {
    border: 1px solid #e9ecef;
    border-left-width: 4px;
    border-radius: .5rem;
    background-color: #fff;
    transition: all 0.3s;
}
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.info-card.border-primary { border-left-color: #0d6efd; }
.info-card.border-warning { border-left-color: #ffc107; }
.info-card.border-success { border-left-color: #198754; }
.info-card.border-danger { border-left-color: #dc3545; }

.info-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-card .info-text .fs-4 {
    font-weight: 600;
}
.info-card .info-text .text-muted {
    font-size: 0.9rem;
}
.info-card .info-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}
.text-primary .info-icon { color: #0d6efd; }
.text-warning .info-icon { color: #ffc107; }
.text-success .info-icon { color: #198754; }
.text-danger .info-icon { color: #dc3545; }

/* New Style for Contact Box */
.contact-box {
    background-color: #013076; /* Bootstrap Primary Blue */
    color: #ffffff;
    padding: 15px;
    border-radius: 0.75rem;
    text-align: left;
    font-size: 1.5rem;
    font-weight: normal;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-box i {
    margin-right: 10px;

}
/* --- Info Widget Box Styles --- */
.info-widget {
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #0d6efd; /* Default accent color (blue) */
}

.info-widget-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: #343a40;
}

.info-widget-header .info-widget-title {
    margin: 0 0 0 0.5rem;
}

.info-widget-body {
    line-height: 1.6;
    color: #495057; /* Softer text color for body */
}
/* --- Yearly Calendar View Styles --- */
.year-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.month-container {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1rem;
}

.month-header {
    background-color: #228dbe; /* Green color */
    color: #fff;
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.day-names, .day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.day-names span {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9em;
    padding-bottom: 0.5rem;
}

.day-cell {
    padding: 0.5rem 0;
    font-size: 0.9em;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px auto;
}

.day-cell.empty {
    background-color: transparent;
}

.day-cell.booked {
    background-color: #f1a49a; /* Green color for booked days */
    color: #fff;
    font-weight: bold;
}
.fc-event.past-event {
    opacity: 0.3;
}
.fc-day-sat, 
.fc-day-sun {
    background-color: #f5f5f5;
.fc-timegrid-col:has(.fc-day-sat),
.fc-timegrid-col:has(.fc-day-sun) {
    background-color: #f5f5f5;
}

/* Accent color variations */
.info-widget.border-success { border-left-color: #198754; }
.info-widget.border-warning { border-left-color: #ffc107; }
.info-widget.border-danger  { border-left-color: #dc3545; }
.info-widget.border-info    { border-left-color: #0dcaf0; }
}