/**
 * ENNU Provider Queue Styles
 * Version: 3.1.0
 */

/* Provider Queue Container */
.ennu-provider-queue {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.ennu-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.ennu-queue-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.ennu-queue-stats {
    display: flex;
    gap: 20px;
}

.ennu-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ennu-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.ennu-stat-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* Queue List */
.ennu-queue-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ennu-queue-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
    cursor: pointer;
}

.ennu-queue-item:hover {
    background: #f8f9fa;
}

.ennu-queue-item:last-child {
    border-bottom: none;
}

.ennu-queue-item.status-waiting {
    border-left: 4px solid #f39c12;
}

.ennu-queue-item.status-in-room {
    border-left: 4px solid #3498db;
}

.ennu-queue-item.status-with-provider {
    border-left: 4px solid #27ae60;
}

.ennu-queue-item.status-completed {
    border-left: 4px solid #95a5a6;
    opacity: 0.6;
}

/* Patient Info */
.ennu-patient-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ennu-patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.ennu-patient-details {
    flex: 1;
}

.ennu-patient-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.ennu-appointment-time {
    font-size: 14px;
    color: #7f8c8d;
}

.ennu-service-name {
    font-size: 13px;
    color: #95a5a6;
    margin-top: 2px;
}

/* Wait Time */
.ennu-wait-time {
    padding: 5px 10px;
    background: #ecf0f1;
    border-radius: 20px;
    font-size: 13px;
    color: #7f8c8d;
    margin-right: 10px;
}

.ennu-wait-time.long-wait {
    background: #ffe5e5;
    color: #e74c3c;
}

/* Action Buttons */
.ennu-queue-actions {
    display: flex;
    gap: 10px;
}

.ennu-action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ennu-action-btn.btn-primary {
    background: #3498db;
    color: white;
}

.ennu-action-btn.btn-primary:hover {
    background: #2980b9;
}

.ennu-action-btn.btn-success {
    background: #27ae60;
    color: white;
}

.ennu-action-btn.btn-success:hover {
    background: #229954;
}

/* Empty State */
.ennu-queue-empty {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.ennu-queue-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ennu-queue-empty-message {
    font-size: 18px;
    margin-bottom: 10px;
}

.ennu-queue-empty-sub {
    font-size: 14px;
}

/* Auto-refresh indicator */
.ennu-refresh-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #7f8c8d;
}

.ennu-refresh-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ennu-queue-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ennu-queue-stats {
        width: 100%;
        justify-content: space-between;
    }

    .ennu-queue-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ennu-patient-info {
        width: 100%;
    }

    .ennu-queue-actions {
        width: 100%;
        justify-content: flex-end;
    }
}