@font-face {
    font-family: Vazir;
    src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font/dist/Vazir.woff2") format("woff2");
}

body {
    font-family: Vazir, sans-serif;
    background: #f0f2f5;
    direction: rtl;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* ---- LOGIN BOX ---- */
.login-box {
    background: white;
    width: 330px;
    padding: 25px;
    margin: 80px auto;
    border-radius: 12px;
    box-shadow: 0 0 10px #cccccc;
    text-align: right;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #444;
}

label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

input[type="text"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: Vazir;
    font-size: 14px;
}

button {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: #1565c0;
}

/* ---- TOP MENU ---- */
.topbar {
    background: #263238;
    padding: 12px 20px;
    text-align: left;
    color: white;
    font-size: 16px;
}

.topbar a {
    color: #81d4fa;
    text-decoration: none;
    font-size: 14px;
    margin-right: 15px;
}

.topbar a:hover {
    color: white;
}

/* ---- CONTENT ---- */
.content {
    width: 90%;
    max-width: 900px;
    background: white;
    margin: 25px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px #cfcfcf;
    text-align: right;
}

h2 {
    color: #444;
}

/* ---- TABLE ---- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th {
    background: #1976d2;
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.action-btn {
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
}

.btn-edit {
    background: #ffa726;
}

.btn-delete {
    background: #e53935;
}

.btn-add {
    background: #43a047;
    padding: 8px 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.success {
    background: #a5d6a7;
    padding: 10px;
    border-radius: 6px;
    color: #2e7d32;
}

.error {
    background: #ef9a9a;
    padding: 10px;
    border-radius: 6px;
    color: #c62828;
}
