@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- מערכת משתני עיצוב פרימיום --- */
:root {
    --primary: #182C61;        /* כחול מותג עמוק - סמכותיות ואמינות */
    --primary-light: #2C5EAD;  /* כחול מותג בהיר */
    --primary-glow: rgba(24, 44, 97, 0.15);
    
    --accent: #DB0505;         /* אדום מותג עז (לפי הלוגו) */
    --accent-hover: #B90404;   /* אדום כהה במעבר עכבר */
    --accent-glow: rgba(219, 5, 5, 0.15);
    
    --text-dark: #0f172a;      /* טקסט כהה קריא */
    --text-muted: #64748b;     /* טקסט משני */
    --text-light: #f8fafc;     /* טקסט בהיר */
    
    --bg-main: #f4f6fa;        /* רקע עמוד בהיר ונקי בנגיעה כחלחלה */
    --bg-card: #ffffff;        /* רקע כרטיס לבן בוהק */
    --bg-footer: #090d16;      /* רקע פוטר כהה מאוד */
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 12px 40px 0 rgba(24, 44, 97, 0.06);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --font-hebrew: 'Assistant', sans-serif;
    --font-english: 'Outfit', sans-serif;
}

/* --- הגדרות כלליות ואפליקציה --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-hebrew);
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl; /* יישור לימין לעברית */
}

/* --- טיפוגרפיה מעוצבת --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* --- כפתורים פרימיום --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    color: var(--text-light);
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--accent-glow);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* --- סרגל ניווט (Navbar) --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- עמוד הבית - גזרת Hero --- */
.hero-section {
    position: relative;
    padding: 10rem 2rem 8rem 2rem;
    background: radial-gradient(circle at 10% 20%, rgba(24, 44, 97, 0.96) 0%, rgba(16, 34, 75, 0.96) 90%), 
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--text-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 4vw;
    background-color: var(--bg-main);
    clip-path: polygon(100% 100%, 0% 100%, 100% 0);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-tag {
    background-color: var(--accent-glow);
    color: #ff9e9e;
    border: 1px solid rgba(219, 5, 5, 0.4);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-title span {
    background: linear-gradient(120deg, #ff5757, #DB0505);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- אזור כרטיסי שירותים --- */
.services-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: 0 4px 20px 0 rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

/* --- מנגנון תמונות רצות - סליידר קטגוריות --- */
.category-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.category-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, transform 6s linear;
}

.category-slider img.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.04);
}

/* נקודות ניווט מעל התמונה */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.4);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dots .dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* בולטים של פרויקטים בתוך הכרטיסייה */
.category-highlights {
    margin-top: 1rem;
    padding-right: 1.2rem;
    list-style-type: none;
}

.category-highlights li {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    margin-bottom: 0.5rem;
}

.category-highlights li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: -1em;
    position: absolute;
    right: -1.2rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.08);
}

/* אפקט הובר ותצוגה מקדימה יוקרתית לכרטיסיות החדשות */
.card-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
}

.card-image-link:hover .category-cover-img-wrapper img {
    transform: scale(1.06);
}

.card-image-link:hover .cover-overlay {
    opacity: 1 !important;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
}

/* --- על החברה (About) --- */
.about-section {
    padding: 6rem 2rem;
    background-color: #f1f5f9;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #475569;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.02);
    border: 1px solid rgba(15, 23, 42, 0.02);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-hebrew);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px 0 rgba(15, 23, 42, 0.1);
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- טופס צור קשר --- */
.contact-section {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--accent);
    background-color: white;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* --- מודאל זכוכית (Client Portal Modal) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.modal-close:hover {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--text-dark);
}

.modal-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal p {
    margin-bottom: 2rem;
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.password-toggle:hover {
    color: var(--primary);
}

/* --- עמוד פרויקט לקוח (Client Project Page) --- */
.project-container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.project-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 10px 30px 0 var(--primary-glow);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.project-header-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

.project-location {
    font-size: 1rem;
    color: #fbbf24;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-desc {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 750px;
    font-weight: 300;
}

.logout-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
}

.logout-link:hover {
    background-color: #ef4444;
    border-color: #ef4444;
}

/* --- סליידר ומד התקדמות רציף (Progress Bar) --- */
.progress-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
    margin-bottom: 3rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-status-label {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.progress-status-text {
    font-weight: 500;
    color: var(--accent);
    background-color: var(--accent-glow);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
}

.progress-bar-container {
    background-color: #e2e8f0;
    height: 16px;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #fbbf24 100%);
    border-radius: var(--radius-full);
    width: 0; /* מוגדר דינמית דרך PHP/JS */
    box-shadow: 0 0 12px var(--accent-glow);
    position: relative;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.progress-percent-bubble {
    font-family: var(--font-english);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- גלריית פרויקט (Grid Gallery) --- */
.project-gallery-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.03);
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

/* --- מסמכי פרויקט להורדה (Documents) --- */
.documents-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.documents-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
}

.document-row:hover {
    background-color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px 0 rgba(217, 119, 6, 0.05);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.document-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.document-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.document-download-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.document-download-btn:hover {
    background-color: var(--accent);
    color: white;
}

.no-data-msg {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
}

/* --- דשבורד מנהל (Admin Dashboard) --- */
.admin-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.admin-welcome {
    font-size: 1.8rem;
}

.admin-welcome span {
    color: var(--accent);
}

.admin-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(15, 23, 42, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-stat-info h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.admin-stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-english);
}

.admin-stat-icon {
    font-size: 2.5rem;
    color: var(--accent-glow);
}

.dashboard-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* --- טבלאות דשבורד מנהל --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.admin-table th {
    background-color: #f1f5f9;
    color: var(--primary);
    padding: 1.25rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid #cbd5e1;
}

.admin-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.admin-table tr:hover td {
    background-color: #f8fafc;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: none;
    color: white;
}

.action-btn-manage {
    background-color: var(--primary);
}

.action-btn-manage:hover {
    background-color: var(--accent);
}

.action-btn-edit {
    background-color: #3b82f6;
}

.action-btn-edit:hover {
    background-color: #2563eb;
}

.action-btn-delete {
    background-color: #ef4444;
}

.action-btn-delete:hover {
    background-color: #dc2626;
}

/* --- סליידר אחוזים יוקרתי בדשבורד --- */
.slider-container {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.slider-val {
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-english);
}

.admin-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: #cbd5e1;
    outline: none;
    transition: var(--transition-smooth);
}

.admin-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition-smooth);
}

.admin-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--accent-hover);
}

.admin-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition-smooth);
}

.admin-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: var(--accent-hover);
}

/* --- שער העלאת קבצים בדשבורד --- */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    background-color: #f8fafc;
    transition: var(--transition-smooth);
    margin-bottom: 2rem;
}

.upload-dropzone:hover {
    border-color: var(--accent);
    background-color: white;
}

.upload-dropzone-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.upload-dropzone p {
    font-weight: 600;
}

.upload-dropzone span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
}

/* --- תצוגת Lightbox גלריית תמונות --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent);
}

/* --- שגיאות והודעות הצלחה --- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

/* --- פוטר (Footer) --- */
footer {
    background-color: var(--bg-footer);
    color: #94a3b8;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--accent);
}

.footer-brand p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
}

/* --- אנימציות --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- התאמות למכשירים ניידים --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image {
        height: 280px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .project-header-card {
        padding: 2rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .logout-link {
        position: static;
        display: inline-block;
        margin-top: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .admin-header .btn {
        width: 100%;
    }

    /* שיפורי התאמה לנייד עבור הדשבורד של המנהל */
    .admin-stats-bar {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .dashboard-card {
        padding: 1.5rem !important;
    }

    .admin-table th, .admin-table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .form-group, .slider-container {
        padding: 1rem !important;
    }

    .action-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }

    .upload-dropzone {
        padding: 2rem 1rem !important;
    }
}
