* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 400;
    src: url(/customer/fonts/vazir/Vazir-Regular.eot);
    src: url('/customer/fonts/vazir/Vazir-Regular?#iefix') format('embedded-opentype'),url(/customer/fonts/vazir/Vazir-Regular.woff2) format('woff2'),url(/customer/fonts/vazir/Vazir-Regular.woff) format('woff'),url(/customer/fonts/vazir/Vazir-Regular.ttf) format('truetype');
    font-display: swap
}

body {
    font-family: 'Vazir',tahoma,sans-serif;
    direction: rtl;
    background: linear-gradient(135deg,#1e3a8a 0%,#1e40af 50%,#3b82f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #e5e7eb;
}

/* Specific scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

.mobile-frame {
    max-width: 420px;
    width: 100%;
    height: 100vh;
    max-height: 900px;
    background: white;
    box-shadow: 0 0 50px rgba(0,0,0,.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 30px;
    background: linear-gradient(135deg,#1e3a8a 0%,#1e40af 50%,#3b82f6 100%);
}

.login-box {
    background: white;
    border-radius: 24px;
    padding: 20px 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    animation: slideUp .5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #475569;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all .3s ease;
    font-family: 'Vazir',tahoma,sans-serif;
    text-align: center;
    letter-spacing: 3px;
    font-weight: 600;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.1);
}

.form-group input::placeholder {
    letter-spacing: normal;
    color: #94a3b8;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all .3s ease;
    font-family: 'Vazir',tahoma,sans-serif;
    color: #1e3a8a;
}

.otp-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.1);
}

.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    padding: 10px;
    background: #fee2e2;
    border-radius: 8px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake .5s;
}

.success-message {
    color: #16a34a;
    font-size: 13px;
    margin-top: 8px;
    padding: 10px;
    background: #dcfce7;
    border-radius: 8px;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideUp .5s;
}

@keyframes shake {
    0%,100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all .3s ease;
    background: linear-gradient(135deg,#1e3a8a 0%,#3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30,58,138,.3);
    font-family: 'Vazir',tahoma,sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,58,138,.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: #1e3a8a;
    border: 2px solid #e2e8f0;
    box-shadow: none;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.resend-timer {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
}

.resend-link {
    color: #3b82f6;
    cursor: pointer;
    font-weight: 600;
}

.resend-link:hover {
    text-decoration: underline;
}

.app-header {
    background: linear-gradient(135deg,#1e3a8a 0%,#3b82f6 100%);
    color: white;
    padding: 10px 20px;
    text-align: right;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: fixed;
    width: 100%;
    max-width: 420px;
    top: 0px;
}

.app-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.app-header .subtitle {
    font-size: 13px;
    opacity: .9;
}

.logout-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all .3s ease;
    font-family: 'Vazir',tahoma,sans-serif;
}

.logout-btn:hover {
    background: rgba(255,255,255,.3);
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    margin-top: 80px;
}

.search-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.search-box label {
    display: block;
    color: #475569;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all .3s ease;
    text-align: center;
    font-family: 'Vazir',tahoma,sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.1);
}

.order-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    cursor: pointer;
    transition: all .3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.order-number {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
}

.order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.order-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-info-row strong {
    color: #334155;
    min-width: 80px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: .5;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-subtext {
    font-size: 14px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    max-height: 100vh;
    border-radius: 20px 20px 0 0;
    /*overflow-y:auto;*/
    animation: slideUpModal .3s ease;
}

.modal-body {
    overflow-y: auto;
    max-height: 100vh;
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg,#1e3a8a 0%,#3b82f6 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: rgba(255,255,255,.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    margin-bottom: 50px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    color: #1e3a8a;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    color: #334155;
    font-weight: 600;
    text-align: left;
}

.progress-container {
    margin: 20px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 35px;
    width: 2px;
    height: 30px;
    background: #e2e8f0;
}

.progress-step.completed:not(:last-child)::after {
    background: #10b981;
}

.progress-step.semicompleted:not(:last-child)::after {
    background: #3b82f6;
}

.progress-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-left: 12px;
    flex-shrink: 0;
}

.progress-step.completed .progress-icon {
    background: #10b981;
    color: white;
}

.progress-step.semicompleted .progress-icon {
    background: #3b82f6;
    color: white;
}

.progress-step.incomplete .progress-icon {
    background: #e2e8f0;
    color: #94a3b8;
}

.progress-text {
    flex: 1;
}

.progress-title {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    margin-bottom: 2px;
}

.progress-date {
    font-size: 12px;
    color: #94a3b8;
}

.test-details-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.test-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-right: 3px solid #3b82f6;
}

.test-item:last-child {
    margin-bottom: 0;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.test-name {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 14px;
}

.test-priority {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.priority-normal {
    background: #dbeafe;
    color: #1e40af;
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.test-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.test-info-item {
    display: flex;
    flex-direction: column;
}

.test-info-label {
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 2px;
}

.test-info-value {
    color: #334155;
    font-weight: 600;
}

.test-badges {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.test-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #f1f5f9;
    color: #64748b;
}

.test-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.test-description {
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.history-table {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.history-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-right: 3px solid #3b82f6;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-status {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 13px;
}

.history-date {
    font-size: 11px;
    color: #94a3b8;
}

.history-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 6px;
}

.history-user {
    font-size: 11px;
    color: #94a3b8;
    text-align: left;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 14px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media(min-width: 421px) {
    body {
        padding:20px;
    }

    .mobile-frame {
        /* border-radius:30px; */
    }

    .modal-content {
        border-radius: 20px;
        max-height: 100vh;
    }
}
