/* Navbar Styles */
/* Import Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* ===== COMMON STATUS STYLES ===== */
.status-on-queue { color: #28a745 !important; font-weight: bold; }
.status-offline { color: #6c757d !important; font-weight: bold; }
.status-short-break { color: #fd7e14 !important; font-weight: bold; }
.status-long-break { color: #dc3545 !important; font-weight: bold; }

/* ===== SENDING STATUS CARD ===== */
.sending-status-card {
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 48px;
}

.sending-status-on {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.sending-status-off {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.sending-status-icon {
    font-size: 1rem;
    margin-right: 6px;
}

.sending-status-on .sending-status-icon { color: #28a745; }
.sending-status-off .sending-status-icon { color: #dc3545; }

.sending-status-text { display: flex; flex-direction: column; }

.sending-status-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1px;
}

.sending-status-value {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.sending-status-on .sending-status-value { color: #28a745; }
.sending-status-off .sending-status-value { color: #dc3545; }

/* ===== USER STATUS CARD ===== */
.user-status-card {
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    min-width: 200px;
    height: 48px;
}

.status-selector-container { position: relative; min-width: 100px; }

.status-select {
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.8rem;
    color: #495057;
    cursor: pointer;
    padding: 4px 20px 4px 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.status-select:focus { outline: none; }

.status-indicator {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

#userStatusDropdown[value="On Queue"] ~ .status-indicator,
#userStatusDropdown option[value="On Queue"]:checked ~ .status-indicator { background-color: #28a745; }

#userStatusDropdown[value="Offline"] ~ .status-indicator,
#userStatusDropdown option[value="Offline"]:checked ~ .status-indicator { background-color: #6c757d; }

#userStatusDropdown[value="Short break"] ~ .status-indicator,
#userStatusDropdown option[value="Short break"]:checked ~ .status-indicator { background-color: #fd7e14; }

#userStatusDropdown[value="Long break"] ~ .status-indicator,
#userStatusDropdown option[value="Long break"]:checked ~ .status-indicator { background-color: #dc3545; }

.status-time-info { min-width: 75px; }

.status-time-info .text-dark {
    font-size: 0.75rem;
    line-height: 1.1;
}

.status-time-info .text-muted { font-size: 0.65rem; }

/* ===== LOGOUT BUTTON ===== */
.logout-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

/* ===== LOGOUT MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

.btn-logout {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

.btn-cancel:hover { background: #d1d5db; }
.btn-logout:hover { background: #dc2626; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .sending-status-card,
    .user-status-card {
        min-width: auto;
        padding: 6px 10px;
        height: 44px;
    }
    
    .sending-status-card { min-width: 100px; }
    .user-status-card { min-width: 160px; }
    
    .sending-status-label { font-size: 0.6rem; }
    .sending-status-value { font-size: 0.75rem; }
    .status-select { font-size: 0.75rem; }
    .logout-text { display: none; }
}
