/* Custom styles for SocialPlanner */
body {
    background-color: #f4f7f6;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#calendar {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

/* Fix text overflow for dayGrid */
.fc-event {
    cursor: pointer;
    border-radius: 4px;
    border: none !important;
    padding: 4px 6px !important;
    margin-bottom: 3px !important;
    font-size: 0.85em;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 5;
}

/* Specifically target event wrapping within the grid cells */
.fc-daygrid-event {
    white-space: normal !important;
    align-items: flex-start !important;
    min-height: 25px;
}

.fc-event-main {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    display: block;
    line-height: 1.3;
}

.fc-event-time {
    font-weight: 700;
    margin-right: 4px;
    color: inherit;
    opacity: 0.9;
}

.fc-event-title {
    color: inherit;
    font-weight: 600;
}

/* Calendar Header Styling */
.fc-header-toolbar {
    margin-bottom: 1.5rem !important;
}

.fc-toolbar-title {
    font-weight: 700 !important;
    color: #2c3e50;
    font-size: 1.4rem !important;
}

.fc-button-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    box-shadow: none !important;
    text-transform: capitalize;
    font-weight: 500 !important;
    border-radius: 6px !important;
}

.fc-button-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.fc-button-primary:not(:disabled).fc-button-active, 
.fc-button-primary:not(:disabled):active {
    background-color: #0a58ca !important;
    border-color: #0a53be !important;
}

/* Grid & Cell Styling */
.fc-theme-standard th {
    background-color: #f8f9fa;
    padding: 12px 0 !important;
    font-weight: 600;
    color: #495057;
    border-color: #e9ecef !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.fc-theme-standard td, .fc-theme-standard th {
    border-color: #e9ecef !important;
}

.fc-day-today {
    background-color: rgba(13, 110, 253, 0.04) !important;
}

/* Tweak day number styles */
.fc-daygrid-day-number {
    font-weight: 600;
    color: #6c757d;
    padding: 8px !important;
    text-decoration: none !important;
}

.fc-daygrid-day-number:hover {
    color: #0d6efd;
}
