/* ===========================
   TICKET MODAL
   =========================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid var(--border-color);
    background: #f8fafc;
    flex-shrink: 0;
    gap: 16px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 0 0 auto;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    max-height: calc(90vh - 150px);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-display {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #f8fafc;
    color: var(--text-primary);
    min-height: 42px;
    display: flex;
    align-items: center;
}

/* Modal Body Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ===========================
   DELETE CONFIRMATION MODAL
   =========================== */
.modal-small {
    max-width: 450px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    flex-shrink: 0;
}

.warning-text {
    color: #F59E0B;
    font-size: 13px;
    margin-top: 12px;
}

/* Modal Buttons */
.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    line-height: 1;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ===========================
   TICKET INFO DISPLAY STYLES
   =========================== */
.ticket-info-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ticket-info-group:last-child {
    margin-bottom: 0;
}

.ticket-info-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-info-with-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-info-with-copy .ticket-info-value {
    flex: 1;
}

.ticket-info-value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 12px 0;
}

.ticket-info-notes {
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--border-radius);
    border: none;
    border-bottom: none;
}

.btn-copy {
    padding: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-copy:hover {
    color: #2ea529;
    border-color: var(--primary-color);
}

.btn-copy:active {
    border-color: var(--primary-hover);
    background-color: var(--primary-hover);
    color: white;
}