/* Quill editor overrides */
.ql-toolbar.ql-snow {
    border-color: #e5e7eb !important;
    border-radius: 0.5rem 0.5rem 0 0;
    background: #f9fafb;
}

.dark .ql-toolbar.ql-snow {
    border-color: #374151 !important;
    background: #1f2937;
}

.ql-container.ql-snow {
    border-color: #e5e7eb !important;
    border-radius: 0 0 0.5rem 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    min-height: 200px;
}

.dark .ql-container.ql-snow {
    border-color: #374151 !important;
    color: #e5e7eb;
    background: #1f2937;
}

.dark .ql-editor.ql-blank::before {
    color: #6b7280;
}

.dark .ql-snow .ql-stroke {
    stroke: #9ca3af;
}

.dark .ql-snow .ql-fill {
    fill: #9ca3af;
}

.dark .ql-snow .ql-picker-label {
    color: #9ca3af;
}

/* FullCalendar overrides */
.fc {
    font-family: 'DM Sans', sans-serif;
}

.fc .fc-toolbar-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
}

/* FullCalendar mobile toolbar */
@media (max-width: 639px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .fc .fc-toolbar .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .fc .fc-toolbar .fc-toolbar-chunk:first-child {
        order: 2;
    }

    .fc .fc-toolbar .fc-toolbar-chunk:nth-child(2) {
        order: 1;
    }

    .fc .fc-toolbar .fc-toolbar-chunk:last-child {
        order: 3;
    }

    .fc .fc-toolbar-title {
        font-size: 1.15rem;
    }

    .fc .fc-button {
        padding: 0.3em 0.5em;
        font-size: 0.8rem;
    }
}

.dark .fc {
    color: #e5e7eb;
}

.dark .fc .fc-button-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.dark .fc .fc-button-primary:disabled {
    background-color: #374151;
    border-color: #374151;
}

.dark .fc .fc-daygrid-day {
    background-color: transparent;
}

.dark .fc th {
    border-color: #1f2937;
}

.dark .fc td {
    border-color: #1f2937;
}

.dark .fc .fc-scrollgrid {
    border-color: #1f2937;
}

.dark .fc .fc-col-header-cell {
    background-color: #1e293b;
    color: #94a3b8;
}

.dark .fc .fc-day-today {
    background-color: rgba(79, 70, 229, 0.1) !important;
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color;
    transition-timing-function: ease;
    transition-duration: 0ms;
}

.transition-colors {
    transition-duration: 200ms;
}

/* Color input styling */
input[type="color"] {
    -webkit-appearance: none;
    padding: 2px;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* Sidebar mobile/desktop */
@media (min-width: 768px) {
    #sidebar {
        transform: translateX(0) !important;
        position: static !important;
    }
}

#sidebar {
    transition: transform 200ms ease;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
