/* --- Base Styles --- */
body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
}

/* --- Event Card Styles --- */
/* Most card styles are handled by Bootstrap's .card, .card-body, .card-title, .card-text, .img-fluid, .rounded-start */

.campus-event-thumbnail {
    /* Specific height for the image container in horizontal cards */
    height: 180px; 
    overflow: hidden;
}

.campus-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    display: block;
}

/* --- Filter and Search Form Styles --- */
/* Most styles handled by Bootstrap classes like .form-control, .btn, .input-group, .row, .col-md-6, .col-lg-4 */

/* Custom adjustments for filter form */
.event-search-form .input-group .btn {
    border-top-left-radius: 0; 
    border-bottom-left-radius: 0; 
}

/* --- View Switcher Styles --- */
/* Handled by Bootstrap .btn-group, .btn, .active */

/* --- Calendar Styles --- */
#campus-events-calendar-container {
    /* Basic styling for the calendar container */
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}


.calendar-grid {
    /* Basic styling for calendar grid */
    gap: 1px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.weekday,
.day-cell {
    border: 1px solid #e2e8f0;
}


.day-cell.has-event {
    background-color: #e8f5fd; /* Light blue for days with events */
}

.day-cell.has-event:hover {
    background-color: #d0eafc;
}

.day-cell .event-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.event-list li a {
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Share Popup Styles --- */
/* Most styles handled by Bootstrap .modal, .modal-dialog, .modal-content, etc. */

/* --- Register Popup Styles --- */
/* Most styles handled by Bootstrap .modal, .modal-dialog, .modal-content, etc. */

/* --- Add to Calendar Button Styles --- */
.campus-add-to-calendar-button {
    margin-top: 1em;
}

/* --- Add to Calendar Popup Styles --- */
#campus-add-to-calendar-popup .modal-body .btn {
    width: 100%;
    margin-bottom: 10px;
}

/* --- Grid Card Styles --- */
.campus-events-list .campus-event-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #fff;
}

.campus-events-list .campus-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.campus-event-card .campus-event-thumbnail {
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.campus-event-card .campus-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campus-event-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.campus-event-card .card-title a {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.1rem;
}

.campus-event-card .card-title a:hover {
    color: #1a202c;
}

.campus-event-card .content p {
    font-size: 0.9rem;
    color: #4a5568;
}
