/* Support Ticket Styles */

/* Priority Badges */
.priority-low {
    background-color: #6c757d !important;
    color: #fff;
}

.priority-medium {
    background-color: #0d6efd !important;
    color: #fff;
}

.priority-high {
    background-color: #ffc107 !important;
    color: #000;
}

.priority-urgent {
    background-color: #dc3545 !important;
    color: #fff;
}

/* Status Badges */
.status-open {
    background-color: #0d6efd !important;
    color: #fff;
}

.status-in-progress {
    background-color: #ffc107 !important;
    color: #000;
}

.status-resolved {
    background-color: #198754 !important;
    color: #fff;
}

.status-closed {
    background-color: #6c757d !important;
    color: #fff;
}

/* Support Ticket Chat Styles */
#messages-list.chat-box-area {
    height: calc(100vh - 30rem);
    min-height: 400px;
    max-height: 600px;
    padding: 1.5rem;
    overflow-y: auto;
}

#messages-list .message-content,
#messages-list .message-received p {
    background: #e9ecef !important;
    color: #000;
}
#messages-list .message-sent p {
    background: #e9ecef !important;
    color: #000;
}

/* User message background - gray */
#messages-list .message-received p {
    background: #e9ecef !important;
    color: #000;
}

/* Chat header styles */
.message-box.style-1 {
    background: #fff;
}

.message-box.style-1 img {
    border: 2px solid #e9ecef;
}

/* Status buttons in chat header */
#status-buttons-container {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .message-box.style-1 {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    #status-buttons-container {
        margin-top: 1rem;
        width: 100%;
    }
    
    #status-buttons-container .btn {
        flex: 1;
        min-width: 0;
    }
}

/* Ensure proper spacing for chat messages */
#messages-list .media {
    margin-bottom: 1rem;
}

#messages-list .media:last-child {
    margin-bottom: 0;
}

/* OTP Input Field Styles */
.otp-input-field {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.otp-input-field .otp-input {
    height: calc(1.5em + 0.75rem + 2px);
    width: calc(1.5em + 0.75rem + 2px);
    min-width: 48px;
    max-width: 55px;
    border: 2px solid #e0e0e0;
    outline: none;
    text-align: center;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    font-weight: 600;
    padding: 0.5rem;
    color: #212529;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.otp-input-field .otp-input:hover:not(:disabled) {
    border-color: #adb5bd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.otp-input-field .otp-input:disabled {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

.otp-input-field .otp-input:focus {
    border-color: #0d6efd;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15), 0 2px 6px rgba(13, 110, 253, 0.2);
    transform: translateY(-1px);
}

.otp-input-field .otp-input:not(:placeholder-shown) {
    border-color: #198754;
    background-color: #f8fff9;
}

/* OTP Authentication Heading */
.otp-authentication-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* Hide number input arrows */
.otp-input-field .otp-input::-webkit-outer-spin-button,
.otp-input-field .otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input-field .otp-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

@media (max-width: 576px) {
    .otp-input-field {
        gap: 0.375rem;
        margin: 0.375rem 0;
    }
    
    .otp-input-field .otp-input {
        height: calc(1.5em + 0.5rem + 2px);
        width: calc(1.5em + 0.5rem + 2px);
        min-width: 42px;
        max-width: 48px;
        font-size: 1rem;
        padding: 0.375rem;
        border-radius: 0.375rem;
    }
}

