/**
 * Styles for Recurring Appointment Exceptions Component
 * Path: components/listing/recurring_appointment_exceptions.css
 */

.af-recurring-exceptions-wrapper {
    margin: 0;
    font-family: inherit;
    color: inherit;
    width: 100%;
}

.af-recurring-exceptions-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

.af-exceptions-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.af-no-exceptions {
    color: #64748b;
    font-size: 0.92em;
    font-style: italic;
    padding: 2px 0;
    line-height: 1.4;
}

/* Premium Exception Pill Card */
.af-exception-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #fee2e2 !important;
    border-radius: 100px !important;
    padding: 4px 6px 4px 10px !important;
    gap: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(220, 38, 38, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.af-exception-badge:hover {
    border-color: #fca5a5 !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-1px) !important;
}

.af-exception-badge-info {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.af-exception-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
}

.af-exception-date-text {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.af-exception-date-val {
    font-weight: 600 !important;
    color: #1e293b !important;
}

.af-exception-time-val {
    font-weight: 500 !important;
    font-size: 11.5px !important;
    color: #64748b !important;
}

/* Styled Restore Action Button inside the card */
.af-exception-restore-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    cursor: pointer !important;
    padding: 4px 10px !important;
    border-radius: 100px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.af-exception-restore-btn i {
    color: var(--color-primary, #936179) !important;
    font-size: 10px !important;
    transition: transform 0.25s ease, color 0.2s ease !important;
}

.af-exception-restore-btn span {
    color: inherit !important;
    transition: color 0.2s ease !important;
}

.af-exception-restore-btn:hover {
    background: var(--color-primary, #936179) !important;
    border-color: var(--color-primary, #936179) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(147, 97, 121, 0.25) !important;
}

.af-exception-restore-btn:hover span,
.af-exception-restore-btn:hover i {
    color: #ffffff !important;
}

.af-exception-restore-btn:hover i {
    transform: rotate(-60deg) !important;
}

.af-exception-restore-btn:active {
    transform: translateY(0) scale(0.97) !important;
}

.af-exception-restore-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* .af-add-exception-trigger-btn inherits sizing from .gfview-button a theme rules */
.af-add-exception-trigger-btn {
    color: var(--color-primary, #936179) !important;
    border-color: var(--color-primary, #936179) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

.af-add-exception-trigger-btn i {
    color: var(--color-primary, #936179) !important;
    font-size: 0.85em !important;
    margin-right: 4px;
    transition: color 0.15s ease !important;
}

.af-add-exception-trigger-btn:hover {
    background: var(--color-primary, #936179) !important;
    border-color: var(--color-primary, #936179) !important;
    color: #ffffff !important;
}

.af-add-exception-trigger-btn:hover i {
    color: #ffffff !important;
}



/* Modal for Exception Date Picker */
.af-exception-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 50000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.af-exception-modal-backdrop.is-active {
    display: flex;
    opacity: 1;
}

.af-exception-modal-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    animation: afModalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes afModalPopIn {
    from {
        transform: scale(0.95) translateY(8px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.af-exception-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.af-exception-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
}

.af-exception-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    padding: 0;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.af-exception-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.af-exception-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.af-exception-modal-hint {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.af-exception-picker-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.af-exception-picker-container .tv-date-picker-wrapper {
    width: 100% !important;
    max-width: 360px;
}

.af-exception-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
    align-items: center;
}

.af-modal-delete-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ef4444;
    color: #ffffff;
    border: 1px solid #ef4444;
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.25;
}

.af-modal-delete-action-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.af-modal-delete-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
