	/* הגדרות בסיס (Dark Mode) */
:root {
    --primary-color: #00bcd4; 
    --secondary-color: #4dd0e1; 
    --text-light: #e0e0e0; 
    --text-dark: #12171f; 
    --card-background: #1e2430; 
    --background-dark: #12171f; 
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.4); 
    --navbar-bg: rgba(30, 36, 48, 0.9); 
    --main-padding: 100px; /* רווח קבוע בין המקטעים */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif; 
}

body {
    color: var(--text-light); 
    direction: ltr;
    min-height: 100vh;
    padding: 20px;
    
    background-image: url('cyber_bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--background-dark); 
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: -1; 
}

/* --- 1. Top Navbar --- */
/* ... (הקוד של ה-Navbar נשאר זהה) ... */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--navbar-bg); 
    border-radius: 15px;
    box-shadow: var(--shadow-dark);
    margin-bottom: var(--main-padding); /* מרווח אחרי ה-Navbar */
    backdrop-filter: blur(5px); 
}
/* ... (שאר ה-CSS של ה-Navbar) ... */
.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }
.logo i { margin-right: 10px; }
.nav-links { display: flex; gap: 25px; }
.dropbtn { background-color: transparent; color: var(--text-light); padding: 10px 15px; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; transition: color 0.3s ease, background-color 0.3s ease; border-radius: 10px; display: flex; align-items: center; }
.dropbtn i { margin-left: 8px; font-size: 0.8rem; transition: transform 0.3s ease; }
.dropdown:hover .dropbtn, .dropbtn.active { color: var(--secondary-color); background: linear-gradient(90deg, rgba(0, 188, 212, 0.1), rgba(0, 188, 212, 0.05)); }
.dropdown:hover .dropbtn i, .dropbtn.active i { transform: rotate(180deg); }
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: var(--card-background); min-width: 200px; box-shadow: var(--shadow-dark); z-index: 10; border-radius: 8px; padding: 10px 0; top: 100%; left: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.1); }
.dropdown-content.show { display: block; opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown-content a { color: var(--text-light); padding: 12px 16px; text-decoration: none; display: flex; align-items: center; transition: background-color 0.2s ease, color 0.2s ease; }
.dropdown-content a i { margin-right: 10px; color: #999; }
.dropdown-content a:hover { background-color: #2a3447; color: var(--secondary-color); }

/* --- 2. Top Row (Time + Search) --- */
.top-row-widgets {
    display: flex;
    justify-content: space-between;
    align-items: center; /* יישור מרכזי לגובה */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    margin-bottom: var(--main-padding); /* מרווח אחרי השורה העליונה */
}

.widget {
    background-color: var(--card-background);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* ווידג'ט זמן */
.time-widget {
    min-width: 250px;
    text-align: center;
}

.greeting {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.time-display {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* קונטיינר לחיפוש (תופס את רוב הרוחב הנותר) */
.search-and-news-container {
    flex-grow: 1; 
    display: flex;
    flex-direction: column; 
    gap: 20px;
}

/* ווידג'ט חיפוש */
.search-container {
    margin: 0;
    width: 100%;
    display: flex; /* כדי שהכפתור יהיה צמוד */
}

.search-input {
    background-color: var(--card-background); 
    color: var(--text-light); 
    border: 2px solid #444; 
    width: 100%; 
    padding: 15px 25px;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.search-button {
    background-color: var(--primary-color);
    color: var(--text-dark); 
    border: none;
    padding: 15px 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--secondary-color);
}


/* --- 3. Icon Grid --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 20px;
    background-color: rgba(30, 36, 48, 0.6); 
    box-shadow: var(--shadow-dark);
    margin-bottom: var(--main-padding); /* מרווח אחרי הרשת */
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    padding: 15px 10px;
    border-radius: 15px;
    background-color: var(--card-background); 
    position: relative;
    
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeIn 0.4s ease-out forwards; 
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.grid-item:hover {
    transform: translateY(-8px) scale(1.03); 
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.3); 
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.grid-item:hover .icon-circle {
    transform: scale(1.05);
}

.item-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
}
/* ... (שאר ה-CSS של נוריות החיווי והאנימציות) ... */
.status-indicator { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); border: 2px solid var(--card-background); animation: pulse 1.5s infinite; }
.status-indicator.active { background-color: #4caf50; box-shadow: 0 0 8px #4caf50; }
.status-indicator.error { background-color: #f44336; box-shadow: 0 0 8px #f44336; }
.status-indicator.idle { background-color: #9e9e9e; box-shadow: none; animation: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }


/* --- 4. Bottom News Widget --- */
.bottom-news-widget { /* סקשן חדש */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    margin-bottom: 20px; /* רווח בסוף הדף */
}

.news-widget {
    padding: 20px;
    width: 100%;
}

.widget-title {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.news-widget ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.news-widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #bbb;
}

.widget-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    margin-top: 10px;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 15px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .item-label {
        font-size: 0.8rem;
    }
    
    .top-row-widgets {
        flex-direction: column; /* נערם במובייל */
        align-items: center;
        gap: 20px;
    }
    
    .time-widget {
        width: 100%;
        max-width: 400px;
    }
    
    .search-and-news-container {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        margin-bottom: 10px;
    }
}
