/**
 * SMS Queue Slideout Styles
 */

/* SMS Queue Slideout Panel */
#slideout_smsQueue {
    position: fixed;
    top: 0;
    right: -620px;
    width: 620px;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 9998;
    overflow-y: auto;
}

#slideout_smsQueue.slideout_smsQueue_open {
    right: 44px;
}

/* Form Elements */
.sms_form_group {
    margin-bottom: 15px;
}

.sms_form_group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.sms_form_control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sms_form_control:focus {
    border-color: #0989BD;
    box-shadow: 0 0 0 3px rgba(9, 137, 189, 0.15);
    outline: none;
}

textarea.sms_form_control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Buttons */
.sms_btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.sms_btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sms_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sms_btn_primary {
    background: linear-gradient(135deg, #0989BD, #077a9e);
    color: white;
}

.sms_btn_primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #077a9e, #066a8a);
}

/* Filter Buttons */
.sms_filter_btn {
    padding: 6px 12px;
    margin-right: 4px;
    background: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    opacity: 0.7;
}

.sms_filter_btn:hover {
    opacity: 1;
    background: #dee2e6;
}

.sms_filter_btn.active {
    opacity: 1;
    background: #0989BD;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Log Items */
.sms_log_item {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.sms_log_item:hover {
    background-color: #f8f9fa;
}

.sms_log_item_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sms_log_recipient {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.sms_log_item_details {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.sms_log_item_details div {
    display: inline-block;
    margin-right: 15px;
}

.sms_log_item_message {
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
    font-style: italic;
}

.sms_log_item_error {
    margin-top: 8px;
    padding: 6px 10px;
    background: #f8d7da;
    border-radius: 4px;
    font-size: 12px;
    color: #842029;
}

/* Status Badges */
.sms_status_badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sms_status_delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.sms_status_failed {
    background-color: #f8d7da;
    color: #842029;
}

.sms_status_pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Empty State */
.sms_queue_empty {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.sms_queue_empty_icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.sms_queue_empty_text {
    font-size: 14px;
}

/* Loading State */
.sms_queue_loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.sms_queue_loading_spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0989BD;
    animation: sms_spinner 0.6s linear infinite;
}

@keyframes sms_spinner {
    to { transform: rotate(360deg); }
}

/* Slideout Title */
#slideout_smsQueue .slideout_title {
    padding: 20px;
    text-align: center;
}

#slideout_smsQueue .slideout_title h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

#slideout_smsQueue .slideout_title p {
    margin: 0;
    font-size: 14px;
}

/* Slideout Body */
#slideout_smsQueue .slideout_body {
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #slideout_smsQueue {
        width: 100%;
        right: -100%;
    }
}

/* Scrollbar styling */
#smsQueue_log_container::-webkit-scrollbar {
    width: 8px;
}

#smsQueue_log_container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#smsQueue_log_container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#smsQueue_log_container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
