/**
 * MODALS UNIFIED - Sistema Centralizado de Modals
 * Paleta: Cinza (#2B3139, #1A1D23) + Cyan (#00E5FF)
 * Design: Clean, Flat, Minimalista
 */

/* ===================================
   BASE MODAL STRUCTURE
   =================================== */

.modal-content {
    /* Um pouco mais claro que o fundo, mas SÓLIDO para leitura perfeita */
    background-color: color-mix(in oklab, #0a0e14, white 4%);
    
    /* Borda sutil para definir o limite do card */
    border: 1px solid rgb(255 255 255 / 6%);
    
    /* Arredondamento consistente */
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-compact .modal-content {
    background: #2B2D31;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
}

.modal-body {
    padding: 24px 20px;
    color: #D1D5DB;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
}

/* ===================================
   CLOSE BUTTON
   =================================== */

.modal .btn-close,
.modal-content .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    opacity: 0.6;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    filter: invert(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===================================
   MODAL HERO SECTION
   =================================== */

.modal-status-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 5px;
    border: 1px solid rgba(0, 229, 255, 0.2);
        border-radius: 20px;
}

.modal-status-icon.success {
    background: rgba(0, 229, 255, 0.1);
    color: #00E5FF;
    border-color: rgba(0, 229, 255, 0.3);
}

.modal-status-icon.warning {
    background: rgba(252, 213, 53, 0.1);
    color: #FCD535;
    border-color: rgba(252, 213, 53, 0.3);
}

.modal-status-icon.danger {
    background: rgba(246, 70, 93, 0.1);
    color: #F6465D;
    border-color: rgba(246, 70, 93, 0.3);
}

.modal-hero-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #EAECEF;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.5px;
}

.modal-sub-text {
    font-size: 0.875rem;
    color: #9CA3AF;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===================================
   MODAL DETAILS BOX
   =================================== */

.modal-details-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 16px;
    margin-top: 16px;
}

.modal-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-detail-row:first-child {
    padding-top: 0;
}

.modal-detail-label {
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-detail-value {
    font-size: 0.875rem;
    color: #D1D5DB;
    font-weight: 500;
    text-align: right;
}

/* ===================================
   LIST GROUP ITEMS (Location, Language)
   =================================== */

.modal .list-group-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    color: #9CA3AF;
    padding: 12px 16px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.modal .list-group-item:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
    color: #00E5FF;
}

.modal .list-group-item.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: #00E5FF;
}

.modal .check-indicator {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal .list-group-item.active .check-indicator,
.modal .location-option.active .check-indicator,
.modal .language-option.active .check-indicator {
    opacity: 1;
}

/* ===================================
   CLIENT/BYTES LIST ITEMS
   =================================== */

.client-item-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    transition: all 0.15s ease;
}

.client-item-row:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateX(4px);
}

/* ===================================
   BUTTONS
   =================================== */

.modal .btn-secondary {
    background: #363940;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #D1D5DB;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 16px;
    transition: all 0.15s ease;
}

.modal .btn-secondary:hover {
    background: #3F4349;
    border-color: rgba(255, 255, 255, 0.15);
    color: #EAECEF;
}

.modal .gray-button {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #363940;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #D1D5DB;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal .gray-button:hover {
    background: color-mix(in oklab, #363940 85%, white);
    border-color: rgba(255, 255, 255, 0.15);
    color: #EAECEF;
}

.modal .yellow-button,
.modal .btn-warning {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #FCD535;
    border: 1px solid #FCD535;
    border-radius: 0;
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal .yellow-button:hover,
.modal .btn-warning:hover {
    background: color-mix(in oklab, #FCD535 85%, white);
    border-color: color-mix(in oklab, #FCD535 85%, white);
}

/* ===================================
   FORM INPUTS
   =================================== */

.modal .form-select,
.modal .form-control,
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="url"],
.modal input[type="time"],
.modal textarea {
    background-color: var(--input-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #D1D5DB;
    font-size: 0.875rem;
    padding: 10px 12px;
    transition: all 0.15s ease;
}

.modal .form-select:focus,
.modal .form-control:focus,
.modal input:focus,
.modal textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #00E5FF;
    color: #EAECEF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.modal .form-select option {
    background: #2B2D31;
    color: #D1D5DB;
}

/* ===================================
   TICKETS MODAL SPECIFIC
   =================================== */

.modal .input-wrapper,
.modal .input-wrapper-ticket {
    position: relative;
    width: 100%;
}

.modal .input-wrapper input,
.modal .input-wrapper textarea {
    width: 100%;
}

/* ===================================
   SCROLLBAR
   =================================== */

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

.clients-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.clients-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 0;
}

.clients-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.5);
}

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

@media (max-width: 768px) {
    .modal-dialog {
        margin: 16px;
    }
    
    .modal-body {
        padding: 20px 16px;
    }
    
    .modal-hero-text {
        font-size: 1.1rem;
    }
}
