html, body {
    font-family: Vazirmatn, sans-serif;
}

html[dir='rtl'] table {
    direction: rtl;
}

html[dir='ltr'] table {
    direction: ltr;
}

html[dir='rtl'] input,
html[dir='rtl'] select,
html[dir='rtl'] textarea {
    text-align: right;
}

html[dir='ltr'] input,
html[dir='ltr'] select,
html[dir='ltr'] textarea {
    text-align: left;
}

nav[aria-label] {
    scrollbar-width: thin;
}

nav[aria-label]::-webkit-scrollbar {
    height: 4px;
}

/* Unified page design */
.page-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
}

.page-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.table-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.table-card-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.table-shell {
    width: 100%;
    text-align: right;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

html[dir='ltr'] .table-shell {
    text-align: left;
}

.table-shell thead {
    background-color: #f8fafc;
}

.table-shell th,
.table-shell td {
    padding: 0.75rem 1rem;
}

.table-shell tbody tr {
    border-top: 1px solid #e2e8f0;
}

.metric-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
}

.metric-value {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
}

.btn-primary {
    border-radius: 0.5rem;
    background-color: #4f46e5;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #fff;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.btn-success {
    border-radius: 0.5rem;
    background-color: #059669;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #fff;
}

.btn-success:hover {
    background-color: #047857;
}

.btn-secondary {
    border-radius: 0.5rem;
    background-color: #334155;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #fff;
}

.btn-danger {
    border-radius: 0.5rem;
    background-color: #dc2626;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.empty-state {
    border-radius: 0.75rem;
    border: 1px dashed #e2e8f0;
    background-color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.manage-aside {
    position: sticky;
    top: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 0.75rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.manage-aside-title {
    border-bottom: 1px solid #e2e8f0;
    padding: 0 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
}

.manage-aside-nav a {
    display: block;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.manage-aside-nav a:hover {
    background-color: #eef2ff;
    color: #4338ca;
}

.manage-aside-panel {
    margin-top: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    padding: 0.75rem;
}

.auth-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 28rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
