:root {
    /* Primary Colors */
    --primary-purple: #6f42c1;
    --primary-purple-hover: #5a34a0;
    --primary-purple-active: #4d2d87;
    --primary-purple-light: rgba(111, 66, 193, 0.1);

    /* Text Colors */
    --text-primary: #333;
    --text-secondary: #000000;
    --text-muted: #999;
    --text-light: #000000;
    --text-white: white;

    /* Background Colors */
    --bg-body: #f5f5f5;
    --bg-white: white;
    --bg-sidebar: #f8f9fa;
    --bg-hover: #f8f9fa;
    --bg-active: #e9ecef;
    --bg-other-month: #fafafa;
    --bg-gray-light: #f0f0f0;
    --bg-gray: #e8e8e8;
    --bg-gray-dark: #e0e0e0;
    --bg-gray-darker: #d0d0d0;

    /* Border Colors */
    --border-light: #e0e0e0;
    --border-white-transparent: rgba(255, 255, 255, 0.5);
    --border-white-semi: rgba(255, 255, 255, 0.7);

    /* Overlay Colors */
    --overlay-white: rgba(255, 255, 255, 0.1);

    /* Shadow */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.calendar-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-white);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-event-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-purple);
    color: var(--text-white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.new-event-btn:hover {
    background: var(--primary-purple-hover);
}

.new-event-btn:active {
    background: var(--primary-purple-active);
}

.new-event-btn svg {
    width: 16px;
    height: 16px;
}

.dropdown-arrow {
    color: var(--primary-purple);
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.dropdown-arrow:hover {
    background: var(--bg-gray-light);
}

.toolbar-right {
    display: flex;
    align-items: center;
}

.view-options {
    display: flex;
    gap: 4px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 6px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.view-btn:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--primary-purple);
    color: var(--text-white);
    box-shadow: var(--shadow-light);
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

/* Header */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--primary-purple);
    color: var(--text-white);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-header h2 {
    font-size: 18px;
    font-weight: 400;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--border-white-transparent);
    color: var(--text-white);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: var(--overlay-white);
}

.today-btn {
    background: transparent;
    border: 1px solid var(--border-white-semi);
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.today-btn:hover {
    background: var(--overlay-white);
}

/* Body Layout */
.calendar-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    padding: 20px 15px;
    overflow: hidden;
}

/* Mini Calendar */
.mini-calendar {
    margin-bottom: 30px;
}

.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.mini-nav {
    display: flex;
    gap: 5px;
}

.mini-nav button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 2px 6px;
}

.mini-nav button:hover {
    background: var(--bg-gray-dark);
    border-radius: 3px;
}

.mini-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 5px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.mini-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-size: 11px;
}

.mini-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mini-day:hover {
    background: var(--bg-gray-dark);
}

.mini-day:active {
    background: var(--bg-gray-darker);
}

.mini-day.other-month {
    color: var(--text-muted);
}

.mini-day.past-day {
    color: #bbb;
    background: #f5f5f5;
}

.mini-day.today {
    background: var(--primary-purple);
    color: var(--text-white);
    font-weight: 600;
}

.mini-day.selected {
    background: var(--primary-purple);
    color: var(--text-white);
}

/* Calendar List */
.add-calendar-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.add-calendar-btn:hover {
    background: var(--primary-purple-light);
}

.my-calendars h3 {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.calendar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.calendar-item input[type="checkbox"] {
    accent-color: var(--primary-purple);
}

.show-all {
    font-size: 12px;
    color: var(--primary-purple);
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.show-all:hover {
    text-decoration: underline;
}

/* Main Calendar */
.main-calendar {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.time-grid-container {
    display: flex;
    flex: 1;
    overflow: auto;
}

.time-column {
    width: 60px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    flex-shrink: 0;
}

.time-slot {
    height: 60px;
    border-bottom: 1px solid var(--border-light);
    padding: 4px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: right;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    flex: 1;
    overflow: hidden;
    background: var(--bg-white);
}

.day-cell {
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 6px 8px;
    background: var(--bg-white);
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 80px;
}

.day-cell:hover {
    background: var(--bg-hover);
}

.day-cell:active {
    background: var(--bg-active);
}

.day-cell.other-month {
    color: var(--text-light);
}

.day-cell.past-day {
    background: #f0ececdc;
    color: #000000;
}

.day-cell.past-day .day-number {
    opacity: 0.6;
}

.day-cell.past-day .day-name {
    color: #000000;
}

.day-number {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 4px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
}

.day-name {
    color: var(--text-secondary);
    font-size: 11px;
}


.day-cell.today .day-number {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 16px;
}

.day-cell.today .day-name {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 16px;

}

.day-cell.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-purple);
    border-radius: 50%;
}

/* Week View Styles */
.days-grid.week-view,
.days-grid.workweek-view {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-template-rows: auto 1fr;
    overflow-y: auto;
}

.days-grid.workweek-view {
    grid-template-columns: repeat(5, 1fr);
}

.week-day-cell {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.week-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-light);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1;
    gap: 4px;
}

.week-day-name {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}

.week-day-number {
    font-size: 20px;
    font-weight: 400;
}

.week-day-cell.today .week-day-header {
    background: var(--bg-white);
}

.week-day-cell.today .week-day-number {
    background: var(--primary-purple);
    color: var(--text-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.week-day-cell.today .week-day-name {
    color: var(--primary-purple);
    font-weight: 500;
}

.week-day-content {
    flex: 1;
    padding: 10px;
    position: relative;
}

/* Day View Styles */
.days-grid.day-view {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
}

.day-view-cell {
    min-height: 500px;
    padding: 20px;
}

.day-view-content {
    height: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .calendar-header h2 {
        font-size: 18px;
    }

    .sidebar {
        width: 180px;
    }

    .weekday {
        font-size: 12px;
        padding: 10px 4px;
    }
}

@media (max-width: 768px) {
    .toolbar {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .toolbar-left {
        flex: 1;
    }

    .new-event-btn {
        padding: 7px 12px;
        font-size: 13px;
    }

    .view-options {
        gap: 2px;
        padding: 3px;
    }

    .view-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .view-btn svg {
        width: 14px;
        height: 14px;
    }

    .calendar-header {
        padding: 12px 15px;
    }

    .calendar-header h2 {
        font-size: 16px;
    }

    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .today-btn {
        padding: 5px 12px;
        font-size: 13px;
    }

    .calendar-body {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 15px;
        display: flex;
        gap: 20px;
        overflow-x: auto;
    }

    .mini-calendar {
        min-width: 200px;
        margin-bottom: 0;
    }

    .calendar-list {
        min-width: 150px;
    }

    .main-calendar {
        min-height: 500px;
    }

    .weekday {
        font-size: 11px;
        padding: 8px 2px;
    }

    .day-cell {
        padding: 6px 4px;
        min-height: 70px;
    }

    .day-number {
        font-size: 12px;
    }

    .days-grid {
        grid-auto-rows: minmax(70px, 1fr);
    }
}

@media (max-width: 480px) {
    .toolbar {
        padding: 8px 10px;
    }

    .toolbar-left {
        width: 100%;
        margin-bottom: 8px;
    }

    .toolbar-right {
        width: 100%;
        overflow-x: auto;
    }

    .new-event-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .new-event-btn svg {
        width: 14px;
        height: 14px;
    }

    .view-options {
        width: 100%;
        justify-content: space-between;
    }

    .view-btn {
        padding: 6px 8px;
        font-size: 11px;
        gap: 4px;
    }

    .view-btn svg {
        width: 12px;
        height: 12px;
    }

    .calendar-header {
        padding: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-center {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    .calendar-header h2 {
        font-size: 15px;
    }

    .nav-btn {
        width: 32px;
        height: 32px;
    }

    .today-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    .sidebar {
        flex-direction: column;
        padding: 10px;
    }

    .mini-calendar {
        width: 100%;
        min-width: auto;
    }

    .calendar-list {
        width: 100%;
        min-width: auto;
    }

    .weekday {
        font-size: 10px;
        padding: 6px 2px;
    }

    .day-cell {
        padding: 4px 2px;
        min-height: 60px;
    }

    .day-number {
        font-size: 11px;
    }

    .day-cell.today .day-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .days-grid {
        grid-auto-rows: minmax(60px, 1fr);
    }
}

@media (max-width: 360px) {
    .calendar-header h2 {
        font-size: 14px;
    }

    .weekday {
        font-size: 9px;
        padding: 5px 1px;
    }

    .day-cell {
        padding: 3px 1px;
        min-height: 50px;
    }

    .day-number {
        font-size: 10px;
    }

    .day-cell.today .day-number {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .days-grid {
        grid-auto-rows: minmax(50px, 1fr);
    }

    .mini-header {
        font-size: 12px;
    }

    .mini-days {
        font-size: 10px;
    }
}

/* Event Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: var(--bg-white);
    border-radius: 0;
    width: 95%;
    height: 95%;
    overflow: hidden;
    box-shadow: none;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}

.modal-container.active {
    transform: scale(1);
    opacity: 1;
}

.modal-container.info-modal {
    width: 420px;
    max-width: 90%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #fdfbff;
}

.info-modal-header {
    background: transparent;
    background: var(--bg-white);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.info-modal-header h2 {
    color: var(--text-primary);
}

.info-modal-header .modal-close {
    color: var(--text-secondary);
}

.info-modal-header .modal-close:hover {
    background: var(--bg-gray-light);
}

.info-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-modal-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.modal-info-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-hover) 100%);
    color: var(--text-white);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px var(--primary-purple-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.reminder-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: var(--bg-body);
    border-radius: 8px;
}

.reminder-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reminder-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.reminder-option label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-body);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-gray);
}

/* Reminders Sidebar */
.reminders-sidebar {
    width: 300px;
    background: var(--bg-white);
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reminders-sidebar.collapsed {
    transform: translateX(100%);
}

.reminders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-hover) 100%);
    color: var(--text-white);
}

.reminders-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.close-reminders {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}

.close-reminders:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reminders-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.reminders-list::-webkit-scrollbar {
    width: 6px;
}

.reminders-list::-webkit-scrollbar-track {
    background: transparent;
}

.reminders-list::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.no-reminders {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
}

.reminder-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--bg-body);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reminder-item:hover {
    background: var(--bg-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reminder-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.reminder-content {
    flex: 1;
}

.reminder-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.reminder-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.reminder-before {
    font-size: 12px;
    color: var(--primary-purple);
    font-weight: 500;
}

.reminder-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.reminder-delete:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

/* Day Events */
.day-events {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-event {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.day-event.work {
    background: #e3f2fd;
    color: #1976d2;
}

.day-event.personal {
    background: #f3e5f5;
    color: #7b1fa2;
}

.day-event.meeting {
    background: #fff3e0;
    color: #f57c00;
}

.day-event.birthday {
    background: #fce4ec;
    color: #c2185b;
}

.day-event.other {
    background: #e8f5e9;
    color: #388e3c;
}

.day-event-more {
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 6px;
    font-weight: 500;
}

/* Event Items (Week/Day View) */
.event-item {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 4px solid;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* .event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
} */

.event-item.work {
    border-left-color: #1976d2;
    color: #1976d2;
}

.event-item.work .event-title {
    color: #1565c0;
}

.event-item.personal {
    border-left-color: #7b1fa2;
    color: #7b1fa2;
}

.event-item.personal .event-title {
    color: #6a1b9a;
}

.event-item.meeting {
    border-left-color: #f57c00;
    color: #f57c00;
}

.event-item.meeting .event-title {
    color: #e65100;
}

.event-item.birthday {
    border-left-color: #c2185b;
    color: #c2185b;
}

.event-item.birthday .event-title {
    color: #ad1457;
}

.event-item.other {
    border-left-color: #388e3c;
    color: #388e3c;
}

.event-item.other .event-title {
    color: #2e7d32;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.4;
}

.event-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.event-meta::before {
    content: '🕐';
    font-size: 14px;
}

.event-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.no-events {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
    font-style: italic;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .reminders-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 999;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 14px 16px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .modal-body {
        padding: 16px;
    }

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

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 9px 10px;
        font-size: 13px;
    }

    .reminder-options {
        padding: 10px;
        gap: 10px;
    }

    .reminder-option label {
        font-size: 13px;
    }

    .form-actions {
        margin-top: 20px;
        padding-top: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 9px 20px;
        font-size: 13px;
    }

    .reminders-sidebar {
        width: 280px;
    }

    .reminder-item {
        padding: 12px;
    }

    .reminder-title {
        font-size: 13px;
    }

    .reminder-time {
        font-size: 12px;
    }
}