/* ============================================
   CRM Styles — Glown Beauty CRM
   ============================================ */

/* --- Chat Embed View --- */
#view-chat {
    position: absolute;
    inset: 0;
    z-index: 5;
}

#view-chat iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Glass Effect --- */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Modal Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* --- Popover Animation --- */
.popover-enter {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
}

.popover-enter-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

/* --- Flatpickr Override --- */
.flatpickr-calendar {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* --- Custom Checkbox --- */
.custom-checkbox {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 2px solid #cbd5e1;
    border-radius: 0.35em;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.custom-checkbox:checked {
    background-color: #059669;
    border-color: #059669;
}

.custom-checkbox:checked::before {
    transform: scale(1);
}

/* ============================================
   FullCalendar Custom Theme
   ============================================ */
.fc {
    font-family: 'Tajawal', sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.fc .fc-button {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    box-shadow: none;
}

.fc .fc-button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: #059669;
    border-color: #059669;
    color: white;
}

.fc .fc-daygrid-day-number {
    font-weight: 600;
    color: #64748b;
    padding: 8px;
}

.fc .fc-daygrid-day.fc-day-today {
    background: #ecfdf5;
}

.fc .fc-event {
    border-radius: 0.5rem;
    padding: 2px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.fc .fc-col-header-cell {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.fc .fc-col-header-cell-cushion {
    font-weight: 700;
    color: #64748b;
    font-size: 0.8rem;
    padding: 10px 4px;
}

.fc td,
.fc th {
    border-color: #f1f5f9;
}
