body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* Simple Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 42px;
    height: 100vh;
    background-color: #2c3e50;
    color: white;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow: hidden;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}


.sidebar-header-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.sidebar-toggle {
    font-size: 20px;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.theme-toggle-header {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 20px;
    color: #ecf0f1;
    transition: opacity 0.3s ease;
    margin-right: 8px;
    opacity: 0;
    box-shadow: none !important;
}

.theme-toggle-header:hover {
    opacity: 0.8 !important;
    background: transparent !important;
}

.theme-toggle-header:focus {
    outline: none;
}

/* Show theme toggle when sidebar is hovered or pinned */
body.sidebar-hover .theme-toggle-header,
.sidebar.pinned .theme-toggle-header {
    opacity: 1;
}

/* Hide other header icons when sidebar is closed */
.sidebar:not(.pinned) .sidebar-header-icons:not(:hover) .theme-toggle-header,
.sidebar:not(.pinned) .sidebar-header-icons:not(:hover) .pin-button-icon {
    display: none;
}

.pin-button-icon {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
    margin: 0;
    color: #ecf0f1;
    box-shadow: none !important;
}

.pin-button-icon:hover {
    background: transparent !important;
}

.pin-button-icon:focus {
    outline: none;
}

body.sidebar-hover .pin-button-icon,
.sidebar.pinned .pin-button-icon {
    opacity: 0.8;
}

.pin-button-icon:hover {
    opacity: 1 !important;
}

.sidebar.pinned .pin-button-icon {
    opacity: 1 !important;
    color: #3498db;
}

.sidebar-content {
    padding: 0 20px 100px 20px; /* Add bottom padding for coffee + footer */
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    height: 100%;
    overflow-y: auto;
}


.sidebar h2 {
    color: white;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.sidebar hr {
    border: none;
    border-top: 1px solid #34495e;
    margin: 10px 0;
}

.sidebar-section {
    margin: 20px 0;
}

.sidebar-section h3 {
    color: #ecf0f1;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-section label {
    display: block;
    color: #bdc3c7;
    font-size: 12px;
    margin: 10px 0 5px 0;
}

.sidebar-btn {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    background-color: #34495e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sidebar-btn:hover {
    background-color: #4a5f7e;
}

.sidebar-btn.primary {
    background-color: #3498db;
}

.sidebar-btn.primary:hover {
    background-color: #2980b9;
}

.calendar-section-flex {
    margin-bottom: 20px;
}

.calendar-section-flex h3 {
    margin-bottom: 10px;
}

.calendar-list-sidebar {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 10px;
    padding-right: 10px;
    position: relative;
}

/* Custom scrollbar for calendar list */
.calendar-list-sidebar::-webkit-scrollbar {
    width: 6px;
}

.calendar-list-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.calendar-list-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.calendar-list-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.calendar-list-sidebar label {
    display: flex;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13px;
}

.calendar-list-sidebar input[type="checkbox"] {
    margin-right: 8px;
}

.sidebar-select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    background-color: #34495e;
    color: white;
    border: 1px solid #4a5f7e;
    border-radius: 4px;
    font-size: 14px;
}

.year-nav-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
}

.sidebar-btn.nav-btn {
    width: 40px;
    flex-shrink: 0;
}

.sidebar-select.year-select {
    flex: 1;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 8px 0;
}

.settings-label {
    color: #bdc3c7;
    font-size: 14px;
}

/* Removed theme-toggle-sidebar styles as Settings section was removed */

/* Account Info Section */
.account-email {
    color: #ecf0f1;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 8px;
    background-color: rgba(52, 152, 219, 0.2);
    border-radius: 4px;
    word-break: break-all;
}

.calendar-stats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #bdc3c7;
    font-size: 13px;
}

.stat-label {
    color: #95a5a6;
}

.stat-value {
    font-weight: bold;
    color: #3498db;
}

/* Coffee heart in footer */
.coffee-heart {
    color: #e74c3c;
    font-size: 16px;
    text-decoration: none;
    margin-left: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.coffee-heart:hover {
    transform: scale(1.2);
}

/* Sidebar footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background-color: #253341;
    border-top: 1px solid #34495e;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

body.sidebar-hover .sidebar-footer,
.sidebar.pinned .sidebar-footer {
    opacity: 1;
}

.sidebar-footer-link {
    color: #95a5a6;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-footer-link:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

body.sidebar-hover .sidebar-footer,
.sidebar.pinned .sidebar-footer {
    opacity: 1;
}

/* Main wrapper adjustment */
.main-wrapper {
    margin-left: 42px;
    transition: margin-left 0.3s;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden; /* Prevent main wrapper from scrolling */
}

/* Use body class for hover state */
body.sidebar-hover .main-wrapper {
    margin-left: 280px;
}

body.sidebar-hover .sidebar {
    width: 280px;
}

body.sidebar-hover .sidebar-content {
    opacity: 1;
}

/* Hide original controls - everything is in sidebar now */
.controls {
    display: none !important;
}

/* Hide calendar selector */
#calendarSelector {
    display: none !important;
}

/* Hide h1 title */
h1 {
    display: none !important;
}

/* Hide legend */
.legend {
    display: none !important;
}

/* Base button styles */
button,
.add-event-button,
#signinButton {
    height: 36px;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: none;
    outline: none;
}

/* Primary action buttons */
button:not(#signoutButton):not(.theme-toggle):not(.theme-toggle-header):not(.pin-button-icon),
.add-event-button {
    background-color: #4285F4;
    color: white;
}

button:not(#signoutButton):not(.theme-toggle):not(.theme-toggle-header):not(.pin-button-icon):hover,
.add-event-button:hover {
    background-color: #3367D6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Secondary actions */
#signoutButton {
    background-color: #757575;
    color: white;
}

#signoutButton:hover {
    background-color: #616161;
}

/* Year selector - match button height */
.year-selector {
    height: 36px;
    padding: 0 12px;
    margin: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
}

/* Month view selectors */
.month-selector {
    height: 36px;
    padding: 0 12px;
    margin: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.view-controls label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* Group the navigation buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Group the auth buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Fix Google Sign-in button height and style */
#signinButton div[role="button"] {
    height: 36px !important;
    border-radius: 4px !important;
}

/* Fix for the Add Event button alignment */
#addEventButton {
    margin-left: 20px; /* Space between Next Year and Add Event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}


/* Make the sign-in/out button display inline with other controls */
#signinButton {
    display: inline-flex !important;
    align-items: center;
    height: 36px;
}

/* Style for better header appearance */
h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #444;
    border-bottom: 2px solid #4285F4;
    padding-bottom: 10px;
    display: inline-block;
}

/* Calendar selector styling */
#calendarSelector {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

#calendarSelector h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-buttons {
        margin-left: 0;
        margin-top: 10px;
    }
}


/* Updated calendar container to use grid for equal width columns */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(var(--month-columns, 12), 1fr); /* Dynamic columns based on month count */
    gap: 10px;
    width: 100%;
    flex: 1;
    overflow-y: hidden; /* Changed to hidden to prevent scrolling */
    margin-bottom: 0;
    height: 100%; /* Ensure it fills available height */
}

/* Responsive grid adjustments based on month count */
.calendar-container[data-month-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.calendar-container[data-month-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.calendar-container[data-month-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.calendar-container[data-month-count="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.calendar-container[data-month-count="6"] {
    grid-template-columns: repeat(6, 1fr);
}

.calendar-container[data-month-count="9"] {
    grid-template-columns: repeat(9, 1fr);
}

.calendar-container[data-month-count="12"] {
    grid-template-columns: repeat(12, 1fr);
}

.calendar-container[data-month-count="15"] {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.calendar-container[data-month-count="18"] {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.calendar-container[data-month-count="24"] {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

/* Adjust month column size based on count for better readability */
.calendar-container[data-month-count="18"] .month-column,
.calendar-container[data-month-count="24"] .month-column {
    font-size: 0.9em;
}

.calendar-container[data-month-count="18"] .day-cell,
.calendar-container[data-month-count="24"] .day-cell {
    min-height: 35px;
    padding: 3px;
}

.calendar-container[data-month-count="18"] .event-summary,
.calendar-container[data-month-count="24"] .event-summary {
    font-size: 11px !important;
}

.month-column {
    min-width: 0; /* Allow column to shrink */
    width: 100%; /* Take full width of grid cell */
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden; /* Prevent overflow */
    min-height: 0; /* Allow shrinking */
}

/* Year boundary line */
.month-column.year-boundary {
    position: relative;
    box-shadow: -6px 0 0 -2px rgba(66, 133, 244, 0.5);
    margin-left: 0;
}



.month-header {
    background-color: #f5f5f5;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.month-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.month-header-text {
    flex: 1;
    text-align: center;
}

.month-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
    width: auto;
    height: auto;
    min-width: auto;
    margin: 0;
    box-shadow: none;
}

.month-nav-arrow:hover {
    color: #4285F4;
    transform: translateY(-50%) scale(1.1);
    background: none;
    box-shadow: none;
}

.month-nav-arrow:focus {
    outline: none;
}

.month-nav-prev {
    left: -2px;
}

.month-nav-next {
    right: -2px;
}

.days-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden; /* Changed to prevent container scrolling */
    overflow-x: visible; /* Allow horizontal overflow for year lines */
    position: relative;
    height: 100%; /* Ensure it fills parent */
}

/* Improved day cell for better readability */
.day-cell {
    display: flex;
    padding: 2px 3px;
    min-height: 0 !important;
    flex: 0 1 auto; /* Allow shrinking */
    border-bottom: 1px solid #eee;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden; /* Changed from auto */
    overflow-x: visible; /* Allow vertical lines to show outside cell */
    position: relative;
    box-sizing: border-box;
    flex-shrink: 1; /* Explicitly allow shrinking */
}

.day-cell:hover {
    background-color: #f9f9f9;
}

/* Improved day number */
.day-number {
    font-weight: bold;
    margin-bottom: 1px;
    font-size: 11px;
    cursor: pointer !important;
    padding: 0 2px !important;
    border-radius: 2px !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.2;
}

.day-number:hover {
    background-color: rgba(66, 133, 244, 0.2) !important;
    color: #1976d2 !important;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* Weekend highlighting */
.day-cell.saturday {
    background-color: #f5f5f5;
}

.day-cell.sunday {
    background-color: #ebebeb;
}

/* Weekend + has-events combination - REMOVED
.day-cell.saturday.has-events {
    background-color: #e6f5e6;
}

.day-cell.sunday.has-events {
    background-color: #deedde;
} */

/* Enhanced today highlighting */
.day-cell.today {
    background-color: #e8f4ff !important;
    border-left: 3px solid #4285F4; /* Add left accent */
}

/* Has events background - REMOVED
.day-cell.has-events:not(.saturday):not(.sunday):not(.today) {
    background-color: #e8ffe8;
} */

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4285F4;
    display: inline-block;
    margin-right: 2px;
}

.event-list {
    overflow-y: auto;
    max-height: 200px;
    border: 1px solid #ddd;
    margin-top: 10px;
    border-radius: 5px;
}

.event-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.event-item:hover {
    background-color: #f0f0f0;
}

.event-item:last-child {
    border-bottom: none;
}

button {
    padding: 8px 12px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

button:hover {
    background-color: #3367D6;
}

.legend {
    display: flex;
    margin-bottom: 10px;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border-radius: 3px;
}

/* Improved event summary styling */
.event-summary {
    font-size: 11px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 3px;
    margin: 1px 0;
    border-radius: 2px;
    cursor: pointer;
    line-height: 1.2;
    font-weight: 500;
    border-left-width: 3px;
    border-left-style: solid;
}

/* Multi-day event vertical span lines */
.event-span-vertical {
    position: absolute;
    width: 3px;
    height: calc(100% + 1px);
    right: 0;
    top: 0;
    z-index: 5;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 1.5px;
    transform-origin: right center;
}

.event-span-vertical:hover {
    cursor: pointer;
}


.event-summary:hover {
    opacity: 0.9;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Subtle shadow on hover */
}

/* Events List Modal Styles */
.events-list-content {
    margin-top: 15px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}


/* Dark theme styles for the events list modal */
body.dark-theme .events-list-content {
    background-color: #282828;
    border-color: #444;
}

/* Animation for modal opening */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    max-height: 80vh;
    overflow-y: auto;
}



/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1 !important;
}

.close:hover {
    background: none !important;
}

.close:focus {
    outline: none;
    background: none !important;
}

.close svg {
    width: 20px;
    height: 20px;
    fill: #666;
    stroke: #666;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.close:hover svg {
    opacity: 1;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    padding-right: 40px; /* Make room for close button */
}

.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.button-danger {
    background-color: #DB4437;
}

.button-danger:hover {
    background-color: #C53929;
}

.button-secondary {
    background-color: #777;
    margin-right: auto; /* Push it to the left */
}

.button-secondary:hover {
    background-color: #666;
}

.button-primary {
    background-color: #4285F4;
}

.button-primary:hover {
    background-color: #357AE8;
}

/* Calendar dropdown styling */
.calendar-select-group {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.calendar-select {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.calendar-select:hover {
    border-color: #4285F4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
}

.calendar-select:focus {
    outline: none;
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.calendar-select option {
    padding: 10px;
    font-size: 15px;
}

.calendar-select-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Fixed add-event-button styling */
.add-event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-left: auto; /* Push to right side when in flex container */
}

/* For the Events section header + button flex container */
div[style*="display: flex; justify-content: space-between"] {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .calendar-container {
        display: flex; /* Revert to flex for smaller screens */
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .month-column {
        min-width: 150px;
        width: auto;
    }
}

/* Drag and drop styles */
.day-cell.drop-ready {
    transition: background-color 0.2s;
}

.day-cell.drag-over {
    background-color: #e3f2fd !important;
    border: 2px dashed #4285F4 !important;
    box-shadow: inset 0 0 10px rgba(66, 133, 244, 0.2);
}

.event-summary {
    position: relative;
    z-index: 10;
    -webkit-user-select: none;
    user-select: none;
}

/* Read-only events styling */
.event-summary.read-only {
    opacity: 0.7;
    font-style: italic;
    cursor: not-allowed !important;
}

.event-summary.read-only:hover {
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.event-summary[draggable="true"] {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: move !important;
    cursor: -webkit-grab !important;
    cursor: grab !important;
}

.event-summary[draggable="true"]:hover {
    cursor: move !important;
    cursor: -webkit-grab !important;
    cursor: grab !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
    z-index: 20 !important;
}

.event-summary[draggable="true"]:active {
    cursor: -webkit-grabbing !important;
    cursor: grabbing !important;
    opacity: 0.8 !important;
}

/* Loading indicator styles */
.loader-spinner {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Event tooltip styles */
.event-tooltip {
    position: fixed;
    display: none;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 300px;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}

.event-tooltip.visible {
    display: block;
}

.event-tooltip-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.event-tooltip-row {
    margin: 4px 0;
    display: flex;
    align-items: flex-start;
}

.event-tooltip-label {
    font-weight: 600;
    color: #666;
    margin-right: 8px;
    min-width: 60px;
}

.event-tooltip-value {
    color: #333;
    flex: 1;
}

.event-tooltip-calendar {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 6px;
}