/* עיצוב מקצועי ומודרני למערכת NF-Matchwork */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

/* משתנים גלובליים */
:root {
    --primary-color: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #06B6D4;
    --success-color: #10B981;
    --dark-color: #1F2937;
    --light-color: #F8FAFC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-duration: 300ms;
    --vh: 1vh;
}

/* איפוס בסיסי */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(var(--vh, 1vh) * 100);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main content area */
main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Footer positioning */
.footer-main {
    flex-shrink: 0;
    margin-top: auto;
}

/* Performance optimizations */
.mobile-device * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mobile-device .card,
.mobile-device .btn {
    will-change: transform;
}

/* Lazy loading styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* כפתורים מקצועיים - עדכון למובייל */
/* כפתורים מקצועיים */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 44px; /* מינימום לנגישות מובייל */
    touch-action: manipulation; /* שיפור מגע */
    text-align: center;
   line-height: 1.3;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1E40AF 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #DC2626 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
    min-height: 52px;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
    min-height: 36px;
}

/* כרטיסים מקצועיים - שיפור למובייל */
/* כרטיסים מקצועיים */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-header {
    padding: 1.5rem 2rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.card-body {
    padding: 1.5rem;
}

/* Header מקצועי - שיפור למובייל */
.card-footer {
    padding: 0 2rem 2rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* Header מקצועי */
.header-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 64px;
}

/* ניווט מקצועי - שיפור למובייל */
.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.75rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    min-height: 44px;
    font-size: 0.9rem;
   display: flex;
   align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-link:hover::after {
    width: 80%;
}

/* Logo מקצועי */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0.625rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

/* Hero Section - שיפור למובייל */
/* Hero Section מקצועי */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #1E40AF 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dashboard מקצועי - שיפור למובייל */
/* Dashboard מקצועי */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* טפסים מקצועיים - שיפור למובייל */
.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* טפסים מקצועיים */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
}

.form-control:hover {
    border-color: var(--gray-300);
}

/* טאבים מקצועיים */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 0;
}

.tab-button {
    padding: 0.75rem 0.5rem;
    border: none;
    background: none;
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative; 
    text-align: center;
    font-size: 0.9rem;
}

.tab-button:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

/* משרות מקצועיות */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.job-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

.job-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-align: right;
}

.job-meta i {
    margin-left: 0.25rem;
    margin-right: 0;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* בדג'ים מקצועיים - שיפור למובייל */
/* בדג'ים מקצועיים */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* התראות מקצועיות - שיפור למובייל */
.badge-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #D97706 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0891B2 100%);
    color: white;
}

/* התראות מקצועיות */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

/* ניווט נייד מקצועי */
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065F46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991B1B;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400E;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #0C4A6E;
}

/* פוטר מקצועי */
.footer-main {
    background: var(--gray-900);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
}

/* ניווט נייד מקצועי */
.mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
   display: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
    font-size: 0.9rem;
    min-height: 52px;
}

.mobile-nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    transform: translateX(-4px);
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: none;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* עיצוב מיוחד ללוגו חברה */
.company-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    border: 3px solid white;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* עיצוב מיוחד לעמוד פרטי משרה */
.job-detail-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.job-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.job-status.approved {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* עיצוב מיוחד לפילטרים */
.search-filters {
    background: white;
    border-radius: 1rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

/* עיצוב מיוחד לפעולות */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* תיקונים לכיוון RTL בלוח הבקרה */
.dashboard-card-content {
    direction: rtl;
    text-align: right;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-align: right;
}

.job-meta i {
    margin-left: 0.25rem;
    margin-right: 0;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* תיקונים לרספונסיביות בלוח הבקרה */
@media (max-width: 768px) {
    .dashboard-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .dashboard-card-header h2 {
        margin-bottom: 0.75rem !important;
    }
    
    .dashboard-card-header .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .job-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .job-actions .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    .dashboard-header .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }
    
    .action-buttons {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* תיקונים לכרטיסי משרות ומועמדויות */
    .job-meta {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
        text-align: right !important;
    }
    
    .application-message,
    .experience-summary {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .dashboard-job-card {
        padding-bottom: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    /* תיקון כפתורים בכרטיסי משרות */
    .dashboard-job-card .btn-sm,
    .message-card .btn-sm {
        width: auto !important; 
        min-width: 90px !important;
        padding: 0.5rem 0.75rem !important; 
        font-size: 0.75rem !important; 
        margin-bottom: 0.5rem !important;
        margin-left: 0.5rem !important;
    }
}

.action-btn {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--gray-800);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: 100%;
    min-height: 200px;
    justify-content: flex-start;
}

.action-btn:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: white;
}

.action-btn-icon {
    font-size: 3rem;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

/* תיקון עיצוב התפריט העליון */
.header-main {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    direction: rtl;
}

/* תיקון תפריט דסקטופ */
@media (min-width: 1024px) {
    .header-main .flex {
        flex-direction: row;
    }
    
    .header-main .logo-container {
        order: 0;
    }
    
    .header-main nav {
        order: 1;
    }
    
    .header-main .ml-auto {
        order: 2;
    }
    
    .rtl-nav {
        margin-right: 2rem;
    }
    
    .rtl-icon {
        margin-left: 0.5rem;
        margin-right: 0;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
    }
}

/* תיקון לוגו */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-direction: row;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

/* אנימציות מקצועיות */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* רספונסיביות מתקדמת */
@media (max-width: 1280px) {
    .dashboard-container {
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .dashboard-container {
        padding: 0.5rem;
    }
    
    .dashboard-header {
        padding: 1.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group .form-group {
        min-width: auto;
    }
    
    .action-buttons {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .job-detail-header {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .tab-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .dashboard-header {
        padding: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .job-title {
        font-size: 1rem;
    }
    
    .job-meta {
        font-size: 0.75rem;
    }
    
    .search-filters {
        padding: 1rem;
    }
    
    .filter-group .form-group {
        margin-bottom: 1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 1.5rem;
    }
    
    .action-btn-icon {
        font-size: 2.5rem;
    }
    
    .job-detail-header {
        padding: 1rem;
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* תיקון תפריט נייד */
    .mobile-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
        min-height: 48px;
    }
    
    /* תיקון לוגו במובייל */
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text p {
        font-size: 0.65rem;
    }
    
    .logo-icon {
        padding: 0.5rem;
        min-width: 36px;
        min-height: 36px;
    }
}

/* תיקונים לכפתורים במובייל */
@media (max-width: 480px) {
    .btn {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 0.5rem !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
    }
    
    .btn-sm {
        width: auto !important;
        min-width: 80px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .dashboard-container {
        padding: 0.25rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .search-filters {
        padding: 0.75rem;
    }
    
    .job-card {
        padding: 0.5rem;
    }
    
    .search-filters {
        padding: 1rem;
    }
    
    .filter-group {
        gap: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .form-control {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .stat-card {
        padding: 0.5rem;
    }
    
    .dashboard-header {
        padding: 0.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.75rem !important;
    }
    
    .job-detail-header {
        padding: 0.5rem;
    }
    
    .company-logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .mobile-nav-link {
        padding: 0.75rem;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.6rem;
    }
    
    .logo-icon {
        padding: 0.375rem;
        min-width: 32px;
        min-height: 32px;
    }
    
    .action-btn {
        padding: 1rem 0.75rem;
        text-align: center;
    }
    
    .action-btn-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* תיקון מודלים במובייל */
    .modal-content {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
        max-height: calc(100vh - 1.5rem);
        padding: 1rem !important;
    }
    
    /* תיקון כפתורי קורות חיים במובייל */
    .cv-buttons-container {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .cv-action-btn {
        width: 100%;
        padding: 12px 16px;
        justify-content: center;
        font-size: 0.95rem;
    }
    
    .alert {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    /* תיקון טבלאות במובייל */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    /* תיקון פילטרים במובייל */
    .filter-group {
        gap: 0.75rem;
    }
    
    .filter-group .form-group {
        margin-bottom: 0.75rem;
    }
    
    /* תיקונים לטאבים במובייל */
    .tab-button {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .tab-button i {
        font-size: 0.9rem !important;
    }
    
    /* תיקונים לכרטיסי מועמדויות */
    .application-message,
    .experience-summary {
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    /* תיקונים לפרופיל */
    .profile-avatar {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.75rem !important;
    }
}

/* תיקונים נוספים לנגישות */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* תיקון לכיוון RTL */
[dir="rtl"] .flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

/* תיקונים נוספים לתפריט RTL בדסקטופ */
.rtl-nav {
    margin-right: 1rem;
}

.rtl-user-menu, .rtl-auth-buttons {
    display: flex;
}

@media (min-width: 1024px) {
  .header-main .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-main .logo-container {
    margin-right: 0;
  }
  
  .header-main .rtl-nav {
    margin-right: 2rem;
  }
  
  .header-main .ml-auto {
    margin-left: auto;
  }
}

/* עיצוב מיוחד לטעינה */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* עיצוב מיוחד לפרופיל */
.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    margin: 0 auto;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
    border: 4px solid white;
    position: relative;
    overflow: hidden;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0.6;
}

/* עיצוב מיוחד לסטטוס */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #92400E;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* עיצוב מיוחד לקבצים */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.02);
}

/* עיצוב מיוחד לחיפוש */
.search-container {
    position: relative;
}

.search-input {
    padding-left: 3rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

/* עיצוב מיוחד לפילטרים */
.filter-group {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group .form-group {
    flex: 1;
    min-width: 200px;
}

/* עיצוב מתקדם לכרטיסי משרות */
.job-card-modern {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.job-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-meta-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.job-meta-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* עיצוב מיוחד לפעולות */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--gray-800);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.action-btn:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: white;
}

.action-btn-icon {
    font-size: 3rem;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* עיצוב מיוחד לטבלאות */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* עיצוב מיוחד למודלים */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: scale(1);
}

/* עיצוב מיוחד לדפי שגיאה */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* עיצוב תוכן עשיר */
.job-description ul, 
.job-requirements ul {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.job-description ol,
.job-requirements ol {
    list-style-type: decimal;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.job-description p,
.job-requirements p {
    margin-bottom: 0.75rem;
}

.job-description h1, .job-requirements h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.job-description h2, .job-requirements h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.job-description h3, .job-requirements h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.job-description a, .job-requirements a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* עיצוב TinyMCE */
.tox-tinymce {
    border-radius: var(--border-radius) !important;
    border: 2px solid var(--gray-200) !important;
    overflow: hidden;
}

.tox-toolbar__group {
    padding: 0 4px !important;
}

.tox-statusbar {
    display: none !important;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .tox-toolbar__group {
        flex-wrap: wrap !important;
    }
    
    .tox-toolbar {
        flex-wrap: wrap !important;
    }
}

/* תיקונים נוספים לכיוון RTL */
.job-meta {
    display: flex;
    align-items: center;
    text-align: right;
    direction: rtl;
}

.job-meta i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* תיקון כרטיסי משרות ומועמדויות */
.dashboard-job-card {
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-job-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* עיצוב הודעות מועמדים */
.application-message {
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1rem 0;
    text-align: right;
    direction: rtl;
    line-height: 1.6;
    color: #4B5563;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.experience-summary {
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1rem 0;
    text-align: right;
    direction: rtl;
    line-height: 1.6;
    color: #4B5563;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}