/**
 * Numera System - Main Stylesheet
 * מערכת נומרה - עיצוב ראשי
 * 
 * עיצוב מודרני ומינימליסטי לפי התמונה
 */

/* ===== משתנים גלובליים ===== */
:root {
    /* צבעים בסיסיים */
    --bg-primary: #f5f7fa;
    --bg-card: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border: #e2e8f0;
    
    /* גרדיאנט צבעוני */
    --gradient: linear-gradient(90deg, #3b82f6 0%, #10b981 33%, #f59e0b 66%, #ec4899 100%);
    
    /* צבעים לפעולות */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* צללים */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    /* רדיוס */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* מרווחים */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
}

/* ===== איפוס ובסיס ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
}

/* ===== טיפוגרפיה ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* ===== קו גרדיאנט (כמו בתמונה!) ===== */
.gradient-line {
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 10px;
    margin: var(--spacing-md) 0;
}

/* ===== כרטיסיות ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border);
}

.card-body {
    padding: var(--spacing-md) 0;
}

/* ===== כפתורים ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--info);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-danger {
    background: var(--error);
    color: white;
}

/* ===== דף הבית - ברוכים הבאים ===== */
.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

.welcome-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.welcome-card h1 {
    margin-bottom: var(--spacing-md);
}

.status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.status-item {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.status-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== מודולים ===== */
.modules-list {
    margin-top: var(--spacing-xl);
    text-align: right;
}

.modules-list h3 {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.module-link {
    display: block;
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.module-link:hover {
    background: white;
    border-right: 4px solid var(--info);
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
}

/* ===== דף 404 ===== */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

.error-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.error-card h1 {
    font-size: 6rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .welcome-card {
        padding: var(--spacing-lg);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .status-info {
        grid-template-columns: 1fr;
    }
}

.payment-method-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.payment-method-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.payment-method-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(to left, #ffffff, #eff6ff);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.payment-method-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

/* ===== כרטיסי פעולות מהירות (עיצוב חדש) ===== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 5 עמודות במסכים גדולים */
@media (min-width: 1400px) {
    .quick-actions-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 4 עמודות במסכים בינוניים */
@media (min-width: 992px) and (max-width: 1399px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 עמודות במסכים קטנים */
@media (min-width: 768px) and (max-width: 991px) {
    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 עמודות במסכים קטנים מאוד */
@media (max-width: 767px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.action-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #2c5282;
    min-height: 140px;
}

.action-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
    border-top-color: #3b82f6;
}

.action-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.action-desc {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
    line-height: 1.3;
}

/* ===== כרטיס ברוכים הבאים ===== */
.user-welcome {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.user-welcome::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 33%, #f59e0b 66%, #ec4899 100%);
}

/* ===== סטטיסטיקות משתמש ===== */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .user-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.user-stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #2c5282;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.user-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-top-color: #3b82f6;
}

.user-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}