/*
|--------------------------------------------------------------------------
| Public CMS Styles
|--------------------------------------------------------------------------
|
| Public-facing layout styles.
| Kept intentionally close to the Admin theme with a subtle color
| distinction so transferred User/Public pages are immediately recognizable.
|
*/

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f5f7fb;
    margin: 0;
    direction: rtl;
    text-align: right;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (RIGHT) */
.sidebar {
    width: 240px;
    background: #243447;
    color: white;
    padding: 15px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-title {
    font-weight: bold;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #d6e0ea;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
}

.sidebar a:hover {
    background: #34495e;
    color: white;
}

.sidebar a.active {
    background: #1987a8;
    color: #fff;
    font-weight: 600;
}

.sidebar-section.active {
    color: #1987a8;
    font-weight: 700;
}

.sidebar .disabled {
    display: block;
    padding: 10px 16px;
    color: #aeb8c2;
    cursor: not-allowed;
    opacity: .7;
    user-select: none;
}

.sidebar-section {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #9fb0bf;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.topbar {
    background: #ffffff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #dfe6ed;
}

/* Content */
.content-wrapper {
    padding: 15px;
    width: 100%;
}

.content {
    padding: 20px;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

/* Card */
.card-box {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(36, 52, 71, 0.10);
    margin-bottom: 20px;
}

/* Page Title */
.page-title {
    margin-bottom: 20px;
}

.page-title h3 {
    margin: 0;
    font-weight: 700;
}

/* Table */
.table {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    border-radius: 8px;
}

/* DataTables */
.dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_length {
    margin-bottom: 15px;
}