* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background: linear-gradient(135deg, #eef2ff, #bfdbfe);
    direction: rtl;
    min-height: 100vh;
}
.container {
    max-width: 1400px;
    margin: auto;
    padding: 1rem;
}
.navbar {
    background: #1e40af;
    border-radius: 2rem;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: white;
    margin-bottom: 2rem;
}
.nav-brand { font-size: 1.4rem; font-weight: bold; }
.nav-links a, .navbar a { color: white; text-decoration: none; margin-right: 1rem; }
.btn {
    background: #2563eb;
    border: none;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: 0.2s;
}
.btn-sm { padding: 0.2rem 0.8rem; font-size: 0.8rem; background: #e2e8f0; color: black; }
.btn-danger { background: #dc2626; }
.form-input, select, textarea {
    width: 100%;
    padding: 0.6rem;
    margin: 0.5rem 0;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}
.data-table th { background: #1e40af; color: white; padding: 0.6rem; }
.data-table td { padding: 0.5rem; border-bottom: 1px solid #e2e8f0; }
.school-ad {
    background: linear-gradient(120deg, #1e3a8a, #3b82f6);
    border-radius: 1.5rem;
    padding: 0.8rem 1.5rem;
    color: white;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.hero-section {
    background: #1e40af;
    border-radius: 2rem;
    padding: 2rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}
.news-grid, .square-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.news-card, .news-square {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}
.news-card:hover, .news-square:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.news-img, .news-square-img { width: 100%; height: 180px; object-fit: cover; }
.dashboard-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.tab {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e2e8f0;
    border-radius: 2rem;
    margin: 0.2rem;
    cursor: pointer;
}
.tab.active { background: #2563eb; color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a, #60a5fa);
}
.login-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    width: 400px;
    max-width: 90%;
}
@media (max-width: 768px) {
    .navbar { flex-direction: column; text-align: center; }
    .news-grid { grid-template-columns: 1fr; }
}