html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    /* font-family: Tahoma, Arial, sans-serif;*/
    font-family: "Vazirmatn", sans-serif;
    background: #f5f6f8;
    color: #1f2937;
}
button,
input,
textarea,
select {
    font-family: inherit;
}
body {
    min-height: 100vh;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    flex-shrink: 0;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-title {
    font-size: 18px;
    font-weight: bold;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 14px;
    font-weight: bold;
}

.user-meta {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.app-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.app-sidebar {
    flex-shrink: 0;
    width: 250px;
    background: #111827;
    color: #ffffff;
}

.sidebar {
    height: 100%;
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid #1f2937;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sidebar-title {
    font-size: 14px;
    font-weight: bold;
}

.sidebar-menu {
    padding: 15px 10px;
}

.menu-section {
    margin-top: 25px;
}

.menu-section-title {
    padding: 0 12px 8px;
    color: #9ca3af;
    font-size: 11px;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    color: #d1d5db;
    text-decoration: none;
    transition: 0.15s;
    box-sizing: border-box;
}

.menu-item:hover {
    background: #1f2937;
    color: #ffffff;
}

.menu-icon {
    width: 22px;
    text-align: center;
}

.menu-text {
    font-size: 13px;
}

.menu-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.app-content {
    padding-inline: 24px;
 /*   width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 25px;*/
}

.app-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-inner {
    min-height: 45px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #6b7280;
}

/* -------------------------------- */
/* Sidebar collapsed                */
/* -------------------------------- */

.app.sidebar-collapsed .app-sidebar {
    width: 70px;
}

.app.sidebar-collapsed .sidebar-title,
.app.sidebar-collapsed .menu-text,
.app.sidebar-collapsed .menu-section-title {
    display: none;
}

.app.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
}

.app.sidebar-collapsed .menu-item {
    justify-content: center;
}

.app.sidebar-collapsed .sidebar-logo {
    margin: 0;
}

/* -------------------------------- */
/* Mobile                           */
/* -------------------------------- */

@media (max-width: 900px) {
    .app-sidebar {
        position: fixed;
        top: 64px;
        bottom: 0;
        right: 0;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.2s ease;
    }

    .app.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .user-meta {
        display: none;
    }

    .app-content {
        padding: 15px;
    }
}

.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
}

.page-header p {
    margin-top: 8px;
    color: #6b7280;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 900px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .row {
        grid-template-columns: 1fr;
    }
}

.form-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   Sidebar
========================================= */

.sidebar {
    width: 250px;
    min-width: 250px;
    background: #111827;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   Header
========================================= */

.sidebar-header {
    height: 90px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #374151;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #f9fafb;
}
@media (max-width: 768px) {
    .main-content,
    .content {
        padding-inline: 12px;
    }
}
