/* ===== ریست ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ===== لودینگ ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner i {
    font-size: 3rem;
    color: #4CAF50;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== محتوای صفحه ===== */
.verify-content {
    padding: 20px;
    padding-bottom: 100px;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== باکس اصلی ===== */
.verify-box {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.verify-header {
    text-align: center;
    margin-bottom: 30px;
}

.verify-header h1 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.verify-header p {
    color: #888;
    font-size: 0.85rem;
}

/* ===== فیلدها ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: Tahoma, Arial, sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:disabled {
    background: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}

/* ===== پیام خطا ===== */
.error-message {
    background: #fff0f0;
    color: #d32f2f;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none;
    border-right: 4px solid #d32f2f;
    text-align: center;
}

/* ===== دکمه ===== */
.verify-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: Tahoma, Arial, sans-serif;
}

.verify-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== موفقیت ===== */
.success-box {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s ease;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-box h2 {
    color: #4CAF50;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.success-box p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.national-code-display {
    background: #f0f2f5;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    margin: 15px 0;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* ===== نوتیفیکیشن ===== */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
    max-width: 90%;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification.success {
    border-right: 4px solid #4CAF50;
}

.notification.error {
    border-right: 4px solid #e53935;
}

.notification i {
    font-size: 1.5rem;
}

.notification.success i {
    color: #4CAF50;
}

.notification.error i {
    color: #e53935;
}

.notification span {
    font-size: 0.9rem;
    color: #333;
}

/* ===== دکمه برگشت ===== */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: #f0f2f5;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e0e0e0;
}

.back-btn i {
    font-size: 1.2rem;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    padding: 8px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 70px;
}

.nav-item:hover,
.nav-item.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.75rem;
}