/* Queue Management System Styles */

.qm-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Tabs */
.qm-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.qm-tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.qm-tab-btn.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: #fff;
}

.qm-tab-btn:hover:not(.active) {
    background: #e9ecef;
}

/* Content */
.qm-tab-content {
    display: none;
    padding: 30px;
}

.qm-tab-content.active {
    display: block;
}

/* Forms */
.qm-form-group {
    margin-bottom: 20px;
}

.qm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
}

.qm-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.qm-form-control:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.qm-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.qm-btn:hover {
    background: #0b5ed7;
}

.qm-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Messages */
.qm-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.qm-message.success {
    background: #d1e7dd;
    color: #0f5132;
    display: block;
}

.qm-message.error {
    background: #f8d7da;
    color: #842029;
    display: block;
}

/* Result Screen */
.qm-result {
    text-align: center;
    padding: 20px;
}

.qm-queue-number {
    font-size: 48px;
    font-weight: 800;
    color: #0d6efd;
    margin: 20px 0;
}

.qm-user-name {
    font-size: 24px;
    margin-bottom: 10px;
}

/* RTL Support */
body.rtl .qm-container {
    direction: rtl;
}

body.rtl .qm-tab-btn {
    font-family: 'Tajawal', sans-serif; /* Example Arabic font */
}
