/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* SortableJS */
.sortable-ghost {
    opacity: 0.4;
    background-color: #e0e7ff !important;
    border: 2px dashed #4f46e5 !important;
}
.sortable-chosen {
    cursor: grabbing !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dropzone hover */
.session-dropzone {
    transition: all 0.2s ease;
}
.session-dropzone.bg-indigo-50 {
    border-color: #4f46e5;
}
.session-dropzone:hover {
    border-color: #6366f1;
}

/* Toast Animation - Sağdan kayma */
@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
.toast-enter {
    animation: slideInRight 0.3s ease forwards;
}
.toast-exit {
    animation: slideOutRight 0.3s ease forwards;
}

/* Modal entry animation */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
#confirm-modal-content,
#person-modal > div,
#excel-modal > div,
#project-modal > div,
#rename-modal > div {
    animation: modalFadeIn 0.2s ease forwards;
}

/* Editable elements - hover hint */
.editable {
    border-radius: 4px;
    padding: 2px 4px;
    transition: background-color 0.15s ease;
    outline: none;
}
.editable:hover {
    background-color: rgba(99, 102, 241, 0.08);
}
.editable:focus {
    background-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 0 2px #6366f1;
}
.dark .editable:hover {
    background-color: rgba(99, 102, 241, 0.15);
}

/* Session card hover */
.person-card {
    transition: all 0.15s ease;
    user-select: none;
}
.person-card:hover {
    transform: translateX(2px);
    border-color: #6366f1 !important;
}

/* Conflict indicator - daha az dikkat çekici (animate-bounce yerine) */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}
.conflict-indicator {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Dropzone feedback */
.dropzone-cell {
    transition: background-color 0.15s ease;
}
.dropzone-cell.drag-over {
    background-color: rgba(99, 102, 241, 0.15) !important;
}

/* Empty state */
.empty-state-illustration {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.dark .empty-state-illustration {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Smooth view transitions */
.view-panel {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Quill düzeltmeleri (kullanılmıyor ama legacy) */
.ql-container {
    font-size: 14px;
    font-family: inherit;
}
.ql-editor {
    min-height: 300px;
}

/* A4 önizleme - print-like görünüm */
#a4-preview-wrapper {
    transform-origin: top center;
    transition: box-shadow 0.3s ease;
}
#a4-preview-wrapper:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Saat etiketinin hover gösterimi */
.dropzone-cell:hover > div {
    opacity: 1 !important;
}

/* Responsive - mobil için */
@media (max-width: 768px) {
    #a4-preview-wrapper {
        transform: scale(0.6);
        margin-top: -120px;
    }
}

/* Dropdown menüsünün hover'da kapanmasını engelle (transition during) */
.group:hover > .group-hover\:visible {
    visibility: visible;
}

/* Tablo hücreleri arası geçiş daha yumuşak */
table th, table td {
    transition: background-color 0.2s ease;
}

/* Disable button styling */
button:disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
}

/* Form inputlar için focus halkası */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Recipient list hover */
#recipient-list > div:hover {
    background-color: rgba(99, 102, 241, 0.08);
}
.dark #recipient-list > div:hover {
    background-color: rgba(99, 102, 241, 0.15);
}

/* Active recipient */
#recipient-list > div.active-recipient {
    background-color: rgba(99, 102, 241, 0.15);
    border-left: 3px solid #4f46e5;
}
.dark #recipient-list > div.active-recipient {
    background-color: rgba(99, 102, 241, 0.25);
}

/* Project card hover */
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}
.dark .project-card:hover {
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.4);
}

/* === Quill rich-text editör tema uyumu === */
#mail-template-editor .ql-editor,
#mail-signature-editor .ql-editor {
    min-height: 180px;
    font-size: 13px;
    line-height: 1.5;
    color: #1e293b;
    background: white;
}
#mail-signature-editor .ql-editor {
    min-height: 80px;
}
.dark #mail-template-editor .ql-editor,
.dark #mail-signature-editor .ql-editor {
    background: #1f2937;
    color: #e5e7eb;
}
.dark #mail-template-editor .ql-toolbar,
.dark #mail-signature-editor .ql-toolbar {
    background: #111827;
    border-color: #374151 !important;
}
.dark #mail-template-editor .ql-toolbar .ql-stroke,
.dark #mail-signature-editor .ql-toolbar .ql-stroke {
    stroke: #d1d5db;
}
.dark #mail-template-editor .ql-toolbar .ql-fill,
.dark #mail-signature-editor .ql-toolbar .ql-fill {
    fill: #d1d5db;
}
.dark #mail-template-editor .ql-toolbar .ql-picker-label,
.dark #mail-signature-editor .ql-toolbar .ql-picker-label {
    color: #d1d5db;
}
.dark #mail-template-editor .ql-container,
.dark #mail-signature-editor .ql-container {
    border-color: #374151 !important;
}
