* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    min-height: 100vh;
    direction: rtl;
    color: #000000;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ניתוב צדדי */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.95));
    backdrop-filter: blur(20px);
    border-left: 3px solid #ff0000;
    box-shadow: -8px 0 32px rgba(255, 0, 0, 0.15), -2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.6);
}

.sidebar h2 {
    color: #000000;
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.nav-menu {
    flex: 1;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.nav-item,
.logout-item {
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 0;
    position: relative;
    text-align: right;
    margin: 3px 15px;
    border-radius: 12px;
}

.nav-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ff0000;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-item.active::before,
.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    color: #ff0000;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.nav-icon {
    font-size: 20px;
    min-width: 25px;
    text-align: center;
}

.nav-text {
    flex: 1;
    text-align: right;
}

.logout-item {
    margin: 15px;
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
    border-radius: 12px;
    flex-shrink: 0;
}

.logout-item:hover {
    background: linear-gradient(135deg, #333333, #000000);
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* תוכן ראשי */
.main-content {
    margin-right: 280px;
    padding: 40px;
    min-height: 100vh;
}

/* תוכן */
.content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.content.active {
    display: block;
}

.content h2 {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff0000, #ffffff, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}