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;
    }
}
