/* استایل مینیمال و مدرن لابراتوار - تم روشن */

@font-face {
    font-family: 'vazir-Font';
    font-style: normal;
    font-display: swap;
    font-weight: normal;
    src: url('fonts/Vazirmatn-FD-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'vazir-Font';
    font-style: normal;
    font-display: swap;
    font-weight: bold;
    src: url('fonts/Vazirmatn-FD-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'vazir-Font';
    font-style: normal;
    font-display: swap;
    font-weight: lighter;
    src: url('fonts/Vazirmatn-FD-Light.woff2') format('woff2');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #374151;
    background: #fafafa;
    min-height: 100vh;
}

.lab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    direction: rtl;
    font-family: 'vazir-Font' !important;
}

/* صفحه ورود */
.lab-container .lab-login-box {
    max-width: 500px !important;
    margin: 140px auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    overflow: visible !important;
    position: relative !important;
    display: block !important;
    font-family: 'vazir-Font' !important;
}

.lab-login-box::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 92px !important;
    background: #475569 !important;
    border-radius: 16px 16px 0 0 !important;
    z-index: 0 !important;
}

.lab-login-box h2 {
    margin: 0 0 50px 0 !important;
    padding: 30px 40px 12px 40px !important;
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.2 !important;
    background: transparent !important;
}

.lab-login-box h3 {
    text-align: center !important;
    margin: 0 !important;
    margin-bottom: 24px !important;
    padding: 0 40px !important;
    padding-top: 20px !important;
    color: #374151 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: transparent !important;
}

.login-step {
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    padding: 0 40px 40px 40px !important;
    margin: 0 !important;
}

.login-step.active {
    display: block !important;
    opacity: 1 !important;
}

.login-step:last-of-type {
    padding-bottom: 40px !important;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 20px !important;
    display: block !important;
}

.lab-login-box .form-group {
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.form-group label .required {
    color: #ef4444 !important;
    font-weight: 700 !important;
    margin-left: 4px !important;
}

.lab-login-box .form-group label {
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #2b394c !important;
    transition: border-color 0.2s ease !important;
    font-family: 'vazir-Font' !important;
    box-sizing: border-box !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #2b394c !important;
    box-shadow: 0 0 0 3px #2b394c1e !important;
}

/* .form-group input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.form-group input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
} */

/* Login Form Specific Input Styles */
.lab-login-box .form-group input,
.lab-login-box .form-group select,
.lab-login-box .form-group textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: #f9fafb !important;
    color: #334155 !important;
    margin: 0 !important;
    margin-top: 8px !important;
    transition: all 0.3s ease !important;
    font-family: 'vazir-Font' !important;
}

.lab-login-box .form-group input:focus,
.lab-login-box .form-group select:focus,
.lab-login-box .form-group textarea:focus {
    background: #ffffff !important;
    border-color: #334155 !important;
    box-shadow: 0 0 0 4px rgba(23, 36, 56, 0.1) !important;
    outline: none !important;
}

/* .lab-login-box .form-group input.valid,
.lab-login-box .form-group textarea.valid {
    border-color: rgb(96, 192, 162) !important;
    background: #f7fdf9 !important;
}

.lab-login-box .form-group input.invalid,
.lab-login-box .form-group textarea.invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
} */

.lab-login-box .form-group input::placeholder,
.lab-login-box .form-group textarea::placeholder {
    color: #c6cbd4 !important;
}

/* جستجو */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.search-box input {
    flex: 1;
    margin-bottom: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #111827 !important;
}

.search-box input::placeholder {
    color: #9ca3af !important;
}

.search-box input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.search-box #search-btn {
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #2b394c 0%, #1c2633 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    white-space: nowrap;
}

.search-box #search-btn:hover {
    box-shadow: 0 4px 12px rgba(16, 33, 61, 0.4) !important;
    transform: translateY(-2px);
}

.search-box #search-btn:active {
    transform: translateY(0);
}

.search-results-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 16px 18px;
    border-radius: 8px;
    border: 2px solid #bae6fd;
    border-right: none;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2b394c;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* دکمه‌ها */
.btn {
    font-family: 'vazir-Font' !important;
    padding: 16px 24px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    color: #374151 !important;
    min-width: 100px !important;
    text-align: center !important;
    line-height: 1 !important;
}

.btn:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

.btn-primary {
    background: #2b394c !important;
    color: #ffffff !important;
    border-color: #2b394c !important;
    width: 100% !important;
}

.btn-primary:hover {
    background: #222d3c !important;
    border-color: #222d3c !important;
}

/* Login Form Specific Styles */
.lab-login-box .btn {
    padding: 20px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
    width: 100% !important;
}

.lab-login-box .btn-primary {
    background: #334155 !important;
    color: #ffffff !important;
    border: none !important;
}

.lab-login-box .btn-primary:hover {
    background: #2b394c !important;
    box-shadow: 0 10px 15px -3px rgba(37, 49, 69, 0.1) !important;
}

.lab-login-box .btn-link {
    padding: 14px 24px !important;
    background: transparent !important;
    color: #334155 !important;
    border: 1px solid #334155 !important;
    margin-top: 12px !important;
}

.lab-login-box .btn-link:hover {
    background: #dfe3ea !important;
    color: #334155 !important;
    border-color: #334155 !important;
}

.btn-secondary {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

.btn-secondary:hover {
    background: #d97706;
    border-color: #d97706;
}

.btn-success {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-link {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
    width: 100%;
    margin-top: 12px;
}

.btn-link:hover {
    background: #3b82f6;
    color: #ffffff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
}

/* پیام‌های وضعیت */
#login-message {
    margin-top: 24px !important;
    padding: 14px 16px !important;
    border-radius: 8px !important;
    text-align: center !important;
    display: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    animation: slideDown 0.3s ease !important;
    border: 1px solid !important;
}

#login-message.success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

#login-message.error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

.lab-login-box #login-message {
    margin: 24px 40px 0 40px !important;
    padding: 14px 16px !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* نوتیفیکیشن‌ها */
.lab-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.lab-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.lab-notification.success {
    background: #10b981;
    color: #ffffff;
}

.lab-notification.error {
    background: #ef4444;
    color: #ffffff;
}

.lab-notification.info {
    background: #3b82f6;
    color: #ffffff;
}

.close-notification {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
    margin-right: auto;
}

.close-notification:hover {
    opacity: 1;
}

/* داشبورد */
.lab-dashboard {
    color: #2b394c;
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Dashboard Header with User Info */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f1f3;
}

.lab-dashboard h2 {
    margin: 0;
    color: #2b394c;
    font-size: 28px;
    font-weight: 700;
    flex: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 20px;
}

.user-name {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-logout {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

/* تب‌ها */
.dashboard-tabs {
    display: flex;
    background: #f8fafc;
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 32px;
    gap: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-btn {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-align: center;
}

.tab-btn:hover {
    color: #2b394c;
    background: #2b394c25;
}

.tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2b394c 0%, #273345 100%);
    box-shadow: 0 4px 12px #2b394c41;
    font-weight: 700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 24px;
    color: #2b394c;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f1f3;
}

/* کیس‌ها */
.tests-list {
    display: grid;
    gap: 20px;
}

.test-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
}

.test-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.test-type {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
}

.test-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.status-processing {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}

.test-body {
    margin-bottom: 16px;
}

.test-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #f3f4f6;
}

.test-details p {
    color: #6b7280;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.test-details strong {
    color: #374151;
    font-weight: 600;
}

.test-body small {
    color: #9ca3af;
    font-size: 12px;
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.admin-notes {
    background: #f0f9ff;
    padding: 16px;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    margin-top: 12px;
}

.admin-notes strong {
    color: #1e40af;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.admin-notes p {
    color: #1e40af;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.test-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* تیکت‌ها */
.ticket-section {
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ticket-section h4 {
    margin-bottom: 20px;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.ticket-messages {
    max-height: 360px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.no-messages {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
}

.message {
    margin-bottom: 16px;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message.admin {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
}

.message.user .message-content {
    background: #3b82f6;
    color: #ffffff;
    border-bottom-left-radius: 4px;
}

.message.admin .message-content {
    background: #f3f4f6;
    color: #111827;
    border-bottom-right-radius: 4px;
}

.message-content p {
    margin: 0 0 6px 0;
    line-height: 1.5;
    font-size: 14px;
}

.message-content small {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
}

.message.user .message-content small {
    color: rgba(255, 255, 255, 0.9);
}

.message.admin .message-content small {
    color: #6b7280;
}

.message-input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-direction: column;
}

.message-input-group textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
    min-height: 64px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
}

.message-input-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* فاکتورها */
.invoices-list {
    display: grid;
    gap: 20px;
}

.invoice-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
}

.invoice-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.invoice-amount {
    color: #059669;
    font-size: 18px;
    font-weight: 700;
}

.invoice-body p {
    margin: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

.invoice-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid;
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card-payment-info {
    background: #fef3c7;
    padding: 16px;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    margin-top: 12px;
}

.card-payment-info p {
    color: #92400e;
    font-size: 14px;
    margin: 6px 0;
}

.card-payment-info a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
}

.card-payment-info a:hover {
    text-decoration: underline;
}

/* مودال */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #ffffff;
    margin: 8% auto;
    padding: 32px;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    position: relative;
    border: 1px solid #e5e7eb;
}

.close {
    color: #9ca3af;
    float: left;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 16px;
    left: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #6b7280;
}

.modal-content h3 {
    margin-bottom: 24px;
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.card-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    border: 1px solid #f3f4f6;
}

.card-info p {
    margin: 8px 0;
    font-size: 14px;
}

.card-info strong {
    color: #374151;
    font-weight: 600;
}

/* فایل آپلود */
input[type="file"] {
    padding: 16px !important;
    background: #f9fafb !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

input[type="file"]:hover {
    border-color: #2b394c !important;
    background: #f1f7ff !important;
}

input[type="file"]:focus {
    outline: none;
    border-color: #2b394c !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #dbeafe;
    color: #2b394c;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #3f454d;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 11px;
    opacity: 0.8;
}

/* لودینگ */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-loading {
    display: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* Persian Date Picker (behzadi) Custom Styling */
.pdp-container {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
    background: #ffffff !important;
}

.pdp-container .pdp-head {
    border-bottom: 1px solid #e5e7eb !important;
}

.pdp-container .pdp-title {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.pdp-container .pdp-nav {
    padding: 8px 0 !important;
}

.pdp-container .pdp-nav button {
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.pdp-container .pdp-nav button:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

.pdp-container .pdp-table {
    background: #ffffff !important;
    padding: 12px 8px !important;
}

.pdp-container table {
    width: 100% !important;
}

.pdp-container th {
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 0 !important;
}

.pdp-container td {
    text-align: center !important;
    padding: 2px !important;
}

.pdp-container td a {
    display: block !important;
    padding: 8px 4px !important;
    border-radius: 4px !important;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.pdp-container td a:hover {
    background: #f0f9ff !important;
    color: #3b82f6 !important;
}

.pdp-container td a.pdp-today {
    background: #f3f4f6 !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

.pdp-container td a.pdp-selected {
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.pdp-container td a.pdp-disabled {
    color: #d1d5db !important;
    cursor: not-allowed !important;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .lab-container {
        padding: 16px !important;
    }

    .lab-container .lab-login-box {
        margin: 32px auto !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .lab-login-box h2 {
        font-size: 24px !important;
        padding: 24px 24px 10px 24px !important;
    }

    .lab-login-box h3 {
        padding: 16px 24px !important;
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }

    .login-step {
        padding: 0 24px 20px 24px !important;
    }

    .login-step:last-of-type {
        padding-bottom: 32px !important;
    }

    .lab-login-box .btn {
        padding: 11px 16px !important;
        font-size: 14px !important;
    }

    .lab-login-box .form-group input,
    .lab-login-box .form-group select,
    .lab-login-box .form-group textarea {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .lab-dashboard {
        padding: 24px 20px;
        margin-top: 32px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding-bottom: 16px;
    }

    .lab-dashboard h2 {
        font-size: 24px;
        margin-bottom: 0;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-right: 0;
    }

    .user-name {
        font-size: 13px;
        width: 100%;
        margin-bottom: 8px;
    }

    .btn-logout {
        padding: 8px 12px !important;
        font-size: 12px !important;
        flex: 1;
        max-width: 120px;
    }

    .dashboard-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .tab-btn {
        text-align: center;
        font-size: 13px !important;
        padding: 12px 12px !important;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-box {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }

    .search-box input {
        padding: 12px 10px !important;
        font-size: 14px !important;
    }

    .search-box #search-btn {
        width: 100%;
        padding: 12px 16px !important;
    }

    .test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .test-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .test-actions {
        flex-direction: column;
    }

    .test-actions .btn {
        width: 100%;
    }

    .message-content {
        max-width: 85%;
    }

    .message-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .payment-methods {
        flex-direction: column;
    }

    .payment-methods .btn {
        width: 100%;
    }

    .modal-content {
        margin: 12% auto;
        width: 95%;
        padding: 20px;
    }

    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lab-notification {
        right: 16px;
        left: 16px;
        width: auto;
        min-width: auto;
    }
}

@media (max-width: 480px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .test-item,
    .invoice-item {
        padding: 20px 16px;
    }

    .ticket-section {
        padding: 20px 16px;
    }

    .modal-content {
        padding: 16px;
    }
}

/* اسکرول بار */
.ticket-messages::-webkit-scrollbar {
    width: 6px;
}

.ticket-messages::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.ticket-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ticket-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Focus states */
.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.tab-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

/* Print styles */
@media print {
    .lab-container {
        max-width: none;
        padding: 0;
    }

    .dashboard-tabs,
    .test-actions,
    .ticket-section,
    .btn {
        display: none !important;
    }

    .test-item,
    .invoice-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
}

.upload-progress-wrapper {
    width: 100%;
    margin-bottom: 15px;
}

.progress-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.lab-progress-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lab-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.2s ease;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}