/* ===== ریست ===== */
* {
    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); }
}

/* ===== فرم لاگین ===== */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 380px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.login-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;
}

/* ===== پیام خطا ===== */
.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;
}

/* ===== دکمه ورود ===== */
.login-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;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn i {
    font-size: 1.2rem;
}

/* ===== لینک‌های پایین ===== */
.form-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-links a {
    display: block;
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 10px 0;
    transition: color 0.3s;
}

.form-links a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* ===== محتوای کاربر ===== */
.user-content {
    padding: 20px;
    padding-bottom: 100px;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== باکس پروفایل ===== */
.profile-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-image i {
    font-size: 2.5rem;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.profile-phone {
    font-size: 0.9rem;
    color: #888;
}

.profile-edit {
    width: 40px;
    height: 40px;
    background: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-edit:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.profile-edit i {
    font-size: 1.2rem;
    color: #666;
}

/* ===== منوی کاربر ===== */
.menu-box {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-item:hover {
    background: #f0f2f5;
}

.menu-item span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item i {
    font-size: 1.3rem;
    color: #666;
}

.menu-item .arrow {
    font-size: 1.2rem;
    color: #ccc;
}

/* آیتم قرمز (خروج) */
.menu-item.logout {
    color: #e53935;
}

.menu-item.logout i {
    color: #e53935;
}

.menu-item.logout:hover {
    background: #ffebee;
}

/* ===== 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;
}

/* ===== دایره هشدار چشمک‌زن ===== */
.alert-badge {
    width: 10px;
    height: 10px;
    background-color: #e53935;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: blink 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    80% {
        opacity: 0.3;
    }
}