body{
margin:0;
font-family:tahoma;
direction:rtl;
background:#f5f6fa;
}

.header {
    width: 99%;
    background: #1f2937;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date {
    font-size: 16px;
    font-weight: 500;
}

.notif {
    position: relative;
    font-size: 24px;
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: red;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

.logout-btn {
    font-size: 18px;
    text-decoration: none;
    color: #d00;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 5px;
    /*border: 1px solid #fff;*/
    transition: 0.2s;
}

.logout-btn:hover {
    background: #d00;
    color: #fff;
}

.logo{
font-weight:bold;
font-size:18px;
}

.layout{
display:flex;
/*flex-direction:row-reverse;*/
}

/* sidebar wrapper */
.sidebar {
    width: 240px;
    background-color:  #2c3e50; /* تیره مدرن */
    color: #fff;
    display: flex;
    flex-direction: column;
    /*height: 100vh;*/
}

/* برند */
.sidebar {
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    /*text-align: center;*/
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* user panel */
.sidebar .user-panel {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
}

/* avatar circle */
.sidebar .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-left: 10px;
    font-weight: bold;
}

/* user text */
.sidebar .user-info {
    display: flex;
    flex-direction: column;
}

.sidebar .user-name {
    font-size: 14px;
    font-weight: 600;
}

.sidebar .user-role {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* menu */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.sidebar-nav li {
    margin: 4px 0;
}

.sidebar-nav a {
    display: block;
    padding: 10px 18px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #111827;
    color: #fff;
}

.content{
flex:1;
padding:25px;
}

/* عنوان صفحه */
.page-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.welcome-text {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.footer{
background:#1f2937;
color:white;
text-align:center;
padding:10px;
}





/* ===== صفحه لاگین ===== */

.login-body {
    margin: 0;
    font-family: tahoma;
    direction: rtl;
    /*background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);*/
    background: linear-gradient(135deg, #1f2937 0%, #2c3e50 50%, #1f2937 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

}


/* باکس اصلی لاگین */
.login-box {
    background-color: #ffffff;
    width: 360px;
    max-width: 90%;
    padding: 28px 26px 26px;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    text-align: center;
}

/* عنوان باکس */
.login-box h2 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #2c3e50;
    font-weight: bold;
}

/* پیام خطا */
.login-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 16px;
    font-size: 13px;
}

/* فرم لاگین */
.login-box form {
    display: flex;
    flex-direction: column;
}

/* فیلدهای ورودی */
.login-input {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #2c3e50;
    font-size: 13px;
    outline: none;
    direction: rtl;
    text-align: right;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-color: #f9fbff;
}

.login-input::placeholder {
    color: #373738;
    font-size: 12px;
}

.login-input:focus {
    border-color: #486683;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
    background-color: #ffffff;
}

/* دکمه ورود */
.login-button {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #2c3e50, #2c3e50);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-button:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
}

.login-button:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(21, 45, 125, 0.45);
}

/* ریسپانسیو کوچک‌تر */
@media (max-width: 480px) {
    .login-box {
        width: 320px;
        padding: 22px 18px 20px;
    }

    .login-box h2 {
        font-size: 18px;
    }
}

















/* کارت‌های داشبورد */
.dashboard-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 220px;
    transition: 0.25s;
    border: 1px solid #f1f1f1;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.dashboard-card .card-icon {
    font-size: 30px;
    opacity: 0.85;
}

.dashboard-card .card-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.dashboard-card .card-title {
    font-size: 12px;
    color: #666;
}



/* بخش برنامه هفتگی */
.schedule-section {
    background: white;
    border-radius: 14px;
    padding: 10px 20px 25px 20px;
    margin-top: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border: 1px solid #f1f1f1;
}

.schedule-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #ececec;
}

.schedule-section .section-header h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-info {
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.85rem;
}



/* جدول برنامه */
.schedule-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.schedule-table th {
    background: var(--primary-color);
    color: rgb(0, 0, 0);
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.schedule-table td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #eee;
    font-size: 0.9rem;
}

.day-cell {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    width: 100px;
}



/* خانه‌های جدول */
.subject-cell {
    position: relative;
    transition: background 0.2s;
    min-height: 55px;
}

.subject-cell.has-subject {
    cursor: pointer;
    background: #fafafa;
}

.subject-cell.has-subject:hover {
    background: #f0f0f0;
}



/* تولتیپ */
.subject-tooltip {
    display: none;
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: #444;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.subject-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #444 transparent transparent transparent;
}

.subject-cell.has-subject:hover .subject-tooltip {
    display: block;
}



/* لِژند */
.schedule-legend {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #555;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
