/* Custom Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.table th {
    border-top: none;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-waiting {
    background-color: #cce5ff;
    color: #004085;
}

.status-assigned {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-served {
    background-color: #d4edda;
    color: #155724;
}

.queue-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-align: center;
}

.action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 0.125rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.notification-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

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

.notification-item.unread {
    background-color: #f8f9fa;
}

/* Dashboard Cards */
.stat-card {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.7;
}

/* Modal Styles */
.modal-content {
    border-radius: 0.5rem;
}

.modal-header {
    background-color: #f8f9fa;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Tab Styles */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
    background-color: transparent;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .action-btn {
        display: block;
        margin: 0.25rem 0;
    }

    .jumbotron {
        padding: 2rem 1rem !important;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Queue Position Display */
.queue-position-display {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
    text-align: center;
    margin: 1rem 0;
}

/* Priority Indicator */
.priority-indicator {
    color: #dc3545;
    font-weight: 600;
}

/* Family Size Badge */
.family-size-badge {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}


/* Admin Dashboard Styles */
.admin-tab-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-pills .nav-link {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #495057;
    transition: all 0.2s;
}

.nav-pills .nav-link.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #e9ecef;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Action buttons */
.action-group {
    display: flex;
    gap: 0.25rem;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

body.rtl .dropdown-menu {
    text-align: right;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

body.rtl .dropdown-menu {
    text-align: right;
}

body.rtl .modal-header .btn-close {
    margin-left: 0;
    margin-right: auto;
}