@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #0d3b66, #001e3d);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 20px;
    margin: 0;
}

header a {
    color: #f4d35e;
    text-decoration: none;
    font-weight: 500;
}
header a:hover {
    text-decoration: underline;
}

/* استایل عمومی کانتینرها و باکس‌ها */
.main-content, .container, .login-container, .profile-container, .panel-container, .box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 25px;
    margin: 20px auto;
    box-sizing: border-box;
}

/* استایل دکمه‌ها */
button, .btn {
    background-color: #0d3b66;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

button:hover, .btn:hover {
    background-color: #001e3d;
}

/* استایل جدول‌ها */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #edf2f7;
    text-align: right;
}

th {
    background-color: #f8fafc;
    color: #4a5568;
    font-weight: 600;
}

tr:hover {
    background-color: #f8fafc;
}

/* فرم‌ها */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="datetime-local"], select, textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px 0;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: #0d3b66;
}

.error {
    color: #e63946;
    font-size: 13px;
    background: #ffe5e6;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* فوتر یکپارچه */
footer {
    background-color: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 14px;
    border-top: 1px solid #334155;
}

footer span {
    color: #f4d35e;
    font-weight: 600;
}