/* ============================================================
   EXHIBITION MODAL STYLES
   Location: /services/exhibitions/exhibitions-style.css
   ============================================================ */

/* Trigger Button */
.btn-exhibitions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #A0522D, #8B3A0F);
    color: #FDF8ED;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(160, 82, 45, 0.3);
    text-decoration: none;
}

.btn-exhibitions:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(160, 82, 45, 0.4);
}

.btn-exhibitions i {
    font-size: 1.1rem;
}

/* ===== MODAL OVERLAY ===== */
.exhibition-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.exhibition-modal.active {
    display: block;
}

/* ===== MODAL CONTENT ===== */
.exhibition-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFBF0;
    border-radius: 28px;
    max-width: 780px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(160, 82, 45, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translate(-50%, -40%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

/* ===== MODAL HEADER ===== */
.exhibition-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(160, 82, 45, 0.1);
    background: linear-gradient(135deg, #FDF8ED, #F5EAD3);
    border-radius: 28px 28px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.exhibition-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2B1E12;
    margin: 0;
}

.exhibition-modal-title i {
    color: #A0522D;
    margin-right: 12px;
}

.exhibition-modal-subtitle {
    font-size: 0.9rem;
    color: #6B5B4E;
    margin-top: 4px;
}

.exhibition-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: #6B5B4E;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 8px;
    line-height: 1;
}

.exhibition-modal-close:hover {
    color: #A0522D;
    transform: rotate(90deg);
}

/* ===== MODAL BODY ===== */
.exhibition-modal-body {
    padding: 24px 28px 32px;
}

/* ===== EXHIBITION LIST ===== */
.exhibition-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

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

.exhibition-list::-webkit-scrollbar-track {
    background: #F5EAD3;
    border-radius: 10px;
}

.exhibition-list::-webkit-scrollbar-thumb {
    background: #A0522D;
    border-radius: 10px;
}

/* Exhibition Item */
.exhibition-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #FDF8ED;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(160, 82, 45, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.exhibition-item:hover {
    border-color: #A0522D;
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.08);
    transform: translateX(4px);
}

.exhibition-item .event-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #A0522D, #CD853F);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.exhibition-item .event-details {
    flex: 1;
    min-width: 0;
}

.exhibition-item .event-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2B1E12;
    margin: 0;
}

.exhibition-item .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6B5B4E;
}

.exhibition-item .event-meta i {
    color: #A0522D;
    width: 16px;
    margin-right: 4px;
}

.exhibition-item .event-delete {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #C0392B;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.4;
}

.exhibition-item .event-delete:hover {
    background: rgba(192, 57, 43, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.exhibition-loading {
    text-align: center;
    color: #6B5B4E;
    padding: 40px 0;
    font-size: 0.95rem;
}

.exhibition-empty {
    text-align: center;
    color: #6B5B4E;
    padding: 40px 0;
}

.exhibition-empty i {
    font-size: 3rem;
    color: #D4A373;
    display: block;
    margin-bottom: 16px;
}

/* ===== ADD EVENT BUTTON ===== */
.btn-add-event {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px dashed #A0522D;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #A0522D;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-add-event:hover {
    background: #A0522D;
    color: #FDF8ED;
    border-style: solid;
}

/* ===== ADD EVENT FORM ===== */
.add-event-form {
    margin-top: 20px;
    padding: 24px;
    background: #FDF8ED;
    border-radius: 16px;
    border: 1px solid rgba(160, 82, 45, 0.15);
}

.add-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2B1E12;
    margin-bottom: 16px;
}

.add-event-title i {
    color: #A0522D;
    margin-right: 10px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2B1E12;
    margin-bottom: 4px;
}

.form-group .required {
    color: #C0392B;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(160, 82, 45, 0.2);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #2B1E12;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #A0522D;
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.1);
}

.form-group .form-hint {
    display: block;
    font-size: 0.75rem;
    color: #8B6914;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-cancel {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #D4A373;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6B5B4E;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #F5EAD3;
}

.btn-submit {
    padding: 10px 28px;
    background: linear-gradient(135deg, #A0522D, #8B3A0F);
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FDF8ED;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(160, 82, 45, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== FORM MESSAGE ===== */
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ===== DELETE CONFIRMATION ===== */
.delete-confirm {
    display: none;
    margin-top: 8px;
    padding: 12px 16px;
    background: #f8d7da;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
}

.delete-confirm.active {
    display: block;
}

.delete-confirm p {
    font-size: 0.9rem;
    color: #721c24;
    margin: 0 0 10px 0;
}

.delete-confirm input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(160, 82, 45, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.delete-confirm .btn-delete-confirm {
    padding: 6px 18px;
    background: #C0392B;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.delete-confirm .btn-delete-cancel {
    padding: 6px 18px;
    background: transparent;
    border: 1px solid #D4A373;
    border-radius: 8px;
    color: #6B5B4E;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .exhibition-modal-content {
        width: 98%;
        border-radius: 20px;
    }
    
    .exhibition-modal-header {
        padding: 18px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .exhibition-modal-title {
        font-size: 1.4rem;
    }
    
    .exhibition-modal-body {
        padding: 18px 16px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .exhibition-item {
        padding: 14px 16px;
        flex-wrap: wrap;
    }
    
    .exhibition-item .event-meta {
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .exhibition-item .event-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-exhibitions {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   ADDITIONAL STYLES FOR DATE RANGE & EYE BUTTON
   ============================================================ */

/* ============================================================
   EYE BUTTON - FIXED
   ============================================================ */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    flex: 1;
    padding-right: 45px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #6B5B4E;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px 8px;
    transition: all 0.2s;
    border-radius: 50%;
    line-height: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: auto !important;
    height: auto !important;
}

.password-wrapper .toggle-password:hover {
    color: #A0522D;
    background: rgba(160, 82, 45, 0.08);
}

.password-wrapper .toggle-password i {
    pointer-events: none;
    font-size: 1.1rem;
}

/* Delete Confirm Password Wrapper */
.delete-confirm .password-wrapper {
    margin-bottom: 8px;
}

.delete-confirm .password-wrapper input {
    margin-bottom: 0;
}

/* Make sure the icon is visible */
.password-wrapper .toggle-password i.fa-eye,
.password-wrapper .toggle-password i.fa-eye-slash {
    display: block;
}
/* Exhibition Date Range */
.exhibition-item .event-date-range {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6B5B4E;
}

.exhibition-item .event-date-range i {
    color: #A0522D;
    width: 16px;
    margin-right: 4px;
}

.exhibition-item .event-date-range .date-separator {
    color: #D4A373;
    margin: 0 2px;
}

/* Access Code Display - Encrypted */
.access-code-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 18px;
    background: #F5EAD3;
    border-radius: 40px;
    border: 1px solid rgba(160, 82, 45, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #2B1E12;
}

.access-code-display .code-text {
    min-width: 80px;
    font-family: 'Courier New', monospace;
}

.access-code-display .code-text.encrypted {
    color: #6B5B4E;
    letter-spacing: 6px;
    font-size: 1rem;
}

.access-code-display .toggle-code {
    background: none;
    border: none;
    color: #6B5B4E;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.access-code-display .toggle-code:hover {
    color: #A0522D;
    background: rgba(160, 82, 45, 0.08);
}

/* Modal Footer with Access Code */
.exhibition-modal-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid rgba(160, 82, 45, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #FDF8ED;
    border-radius: 0 0 28px 28px;
}

.exhibition-modal-footer .footer-label {
    font-size: 0.75rem;
    color: #6B5B4E;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .exhibition-modal-footer {
        padding: 14px 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .access-code-display {
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .exhibition-item .event-date-range {
        font-size: 0.8rem;
    }
}

/* ============================================================
   STATUS INDICATOR STYLES
   ============================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.status-badge i {
    font-size: 0.6rem;
}

.status-badge.upcoming {
    background: #E8F0FE;
    color: #1A56DB;
    border: 1px solid rgba(26, 86, 219, 0.2);
}

.status-badge.ongoing {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid rgba(6, 95, 70, 0.2);
}

.status-badge.completed {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-badge.upcoming .status-dot {
    background: #1A56DB;
}

.status-badge.ongoing .status-dot {
    background: #065F46;
    animation: pulse-dot 1s ease-in-out infinite;
}

.status-badge.completed .status-dot {
    background: #6B7280;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Exhibition Item with Status */
.exhibition-item .event-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.exhibition-item .event-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2B1E12;
    margin: 0;
    text-decoration: none;
    transition: color 0.2s;
}

.exhibition-item .event-name:hover {
    color: #A0522D;
}

.exhibition-item .event-name.has-link {
    cursor: pointer;
}

.exhibition-item .event-name.has-link::after {
    content: '\f0c1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 0.7rem;
    color: #A0522D;
    margin-left: 6px;
    opacity: 0.6;
}

/* ============================================================
   EYE BUTTON FIX
   ============================================================ */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 45px;
    width: 100%;
    box-sizing: border-box;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #6B5B4E;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px 8px;
    transition: all 0.2s;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.password-wrapper .toggle-password:hover {
    color: #A0522D;
    background: rgba(160, 82, 45, 0.08);
}

.password-wrapper .toggle-password i {
    pointer-events: none;
}

/* Delete Confirm Password Wrapper */
.delete-confirm .password-wrapper {
    margin-bottom: 8px;
}

.delete-confirm .password-wrapper input {
    margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE UPDATES
   ============================================================ */

@media (max-width: 768px) {
    .exhibition-item .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .status-badge {
        font-size: 0.6rem;
        padding: 2px 10px;
    }
}