:root {
    --theme-color-bg: #e9e5c4;
    --theme-color-1: #fcd603;
    --theme-color-2: #2c2b7c;
    --theme-color-light: #fff8d6;
    --theme-color-dark: #1a1a5c;
    --theme-color-gray: #f5f5f0;
    --theme-color-border: #e8e6d0;
    --theme-color-text: #333;
    --theme-color-text-light: #666;
    --theme-color-success: #28a745;
    --theme-color-danger: #dc3545;
    --theme-color-warning: #ffc107;
    --theme-color-info: #17a2b8;
    --shadow-sm: 0 1px 3px rgba(44, 43, 124, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 43, 43, 124, 0.1);
    --shadow-lg: 0 8px 24px rgba(44, 43, 124, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
}
.settings-shell { padding: 0; overflow: hidden; }
.settings-tabs { display: flex; gap: 6px; padding: 12px 16px 0; border-bottom: 1px solid var(--theme-color-border); background: var(--theme-color-gray); overflow-x: auto; }
.settings-tab { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--theme-color-text-light); padding: 12px 16px; font: inherit; white-space: nowrap; cursor: pointer; }
.settings-tab.active { color: var(--theme-color-2); border-bottom-color: var(--theme-color-2); font-weight: 700; }
.settings-panel { display: none; padding: 18px; }
.settings-panel.active { display: block; }
.settings-panel > .card { margin: 0 !important; box-shadow: none; border: 0; }
.settings-save { display: flex; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--theme-color-border); background: var(--theme-color-gray); }
@media (max-width: 600px) { .settings-tabs { padding-inline: 8px; } .settings-tab { padding: 10px 12px; } .settings-panel { padding: 12px; } }
@font-face {
font-family: IRANSans;
font-style: normal;
font-weight: 900;
src: url('../fonts/eot/IRANSansWeb(FaNum)_Black.eot');
src: url('../fonts/eot/IRANSansWeb(FaNum)_Black.eot?#iefix') format('embedded-opentype'),
url('../fonts/woff2/IRANSansWeb(FaNum)_Black.woff2') format('woff2'),
url('../fonts/woff/IRANSansWeb(FaNum)_Black.woff') format('woff'),
url('../fonts/ttf/IRANSansWeb(FaNum)_Black.ttf') format('truetype');
}
@font-face {
font-family: IRANSans;
font-style: normal;
font-weight: bold;
src: url('../fonts/eot/IRANSansWeb(FaNum)_Bold.eot');
src: url('../fonts/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix') format('embedded-opentype'),
url('../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),
url('../fonts/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff'),
url('../fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype');
}
@font-face {
font-family: IRANSans;
font-style: normal;
font-weight: 500;
src: url('../fonts/eot/IRANSansWeb(FaNum)_Medium.eot');
src: url('../fonts/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix') format('embedded-opentype'),
url('../fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'),
url('../fonts/woff/IRANSansWeb(FaNum)_Medium.woff') format('woff'),
url('../fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf') format('truetype');
}
@font-face {
font-family: IRANSans;
font-style: normal;
font-weight: 300;
src: url('../fonts/eot/IRANSansWeb(FaNum)_Light.eot');
src: url('../fonts/eot/IRANSansWeb(FaNum)_Light.eot?#iefix') format('embedded-opentype'),
url('../fonts/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'),
url('../fonts/woff/IRANSansWeb(FaNum)_Light.woff') format('woff'),
url('../fonts/ttf/IRANSansWeb(FaNum)_Light.ttf') format('truetype');
}
@font-face {
font-family: IRANSans;
font-style: normal;
font-weight: 200;
src: url('../fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot');
src: url('../fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix') format('embedded-opentype'),
url('../fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2'),
url('../fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff') format('woff'),
url('../fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf') format('truetype');
}
@font-face {
font-family: IRANSans;
font-style: normal;
font-weight: normal;
src: url('../fonts/eot/IRANSansWeb(FaNum).eot');
src: url('../fonts/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
url('../fonts/woff2/IRANSansWeb(FaNum).woff2') format('woff2'),
url('../fonts/woff/IRANSansWeb(FaNum).woff') format('woff'),
url('../fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h4{
    display: flex;
    gap: 5px;
}
i{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
body {
    font-family: IRANSans;
    background: var(--theme-color-bg);
    color: var(--theme-color-text);
    direction: rtl;
    line-height: 1.6;
    font-size: 14px;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--theme-color-2);
    color: white;
    padding: 20px 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 100;
}

.sidebar.collapsed {
    width: 70px;
}

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

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--theme-color-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color-2);
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .user-info {
    display: none;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin: 4px 12px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(252, 214, 3, 0.15);
    color: var(--theme-color-1);
}

.sidebar-menu a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.menu-text {
    flex: 1;
    white-space: nowrap;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--theme-color-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color-2);
    font-weight: 600;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    opacity: 0.7;
}

.floating-create-task {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: var(--theme-color-2);
    background: var(--theme-color-1);
    box-shadow: 0 8px 24px rgba(44, 43, 124, 0.3);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    font-size: 13px;
}

.floating-create-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 28px rgba(44, 43, 124, 0.38);
}

.floating-create-task i {
    font-size: 15px;
}

@media (max-width: 768px) {
    .floating-create-task {
        left: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        min-height: 52px;
        padding: 0 17px;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: 260px;
    transition: var(--transition);
}

.sidebar.collapsed ~ .main-content {
    margin-right: 70px;
}

.topbar {
    background: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-toggle-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--theme-color-2);
    cursor: pointer;
    padding: 6px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-color-2);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--theme-color-2);
    cursor: pointer;
    padding: 8px;
}

.notification-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--theme-color-danger);
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.content-area {
    padding: 24px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--theme-color-border);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-color-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: var(--theme-color-light);
    color: var(--theme-color-2);
}

.stat-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.stat-icon.success {
    background: #d4edda;
    color: #155724;
}

.stat-icon.danger {
    background: #f8d7da;
    color: #721c24;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-color-2);
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 12px;
    color: var(--theme-color-text-light);
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
    width: fit-content !important;
    float: right;
}

.btn-primary {
    background: var(--theme-color-1);
    color: var(--theme-color-2);
}

.btn-primary:hover {
    background: #e6c200;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--theme-color-2);
    color: white;
}

.btn-secondary:hover {
    background: var(--theme-color-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--theme-color-border);
    color: var(--theme-color-text);
    border-radius: 8px;
}

.btn-outline:hover {
    background: var(--theme-color-gray);
    color: var(--theme-color-2) !important;
}

.btn-danger {
    background: var(--theme-color-danger);
    color: white;
}
.btn-success{
    background: var(--theme-color-success);
    color: #fff;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    cursor: pointer;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-color-text);
}

.form-label .required {
    color: var(--theme-color-danger);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--theme-color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: white;
    transition: var(--transition);
}
.login-page .form-control {
    direction: ltr;
}
.login-page form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.login-page form .form-group{
    width: 100%;
}
.login-page form .btn{
    font-size: 1rem;
    padding: 12px;
    width: 152px !important;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: var(--theme-color-2);
}
.form-control:focus {
    outline: none;
    border-color: var(--theme-color-1);
    box-shadow: 0 0 0 3px rgba(252, 214, 3, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--theme-color-gray);
    padding: 12px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-color-2);
    border-bottom: 2px solid var(--theme-color-border);
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--theme-color-border);
    font-size: 13px;
}

table tr:hover {
    background: var(--theme-color-light);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-accepted {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-in_progress {
    background: #cce5ff;
    color: #004085;
}

.badge-deputy_review,
.badge-submitted {
    background: #cce5ff;
    color: #004085;
}

.badge-review {
    background: #e2d9f3;
    color: #5a2d82;
}

.badge-completed {
    background: #e2f3e7;
    color: #155724;
}

.task-mobile-row.task-overdue { background-color: #fff0f0; }
.task-mobile-row.task-approved { background-color: #f0f8f1; }

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.badge-role {
    background: var(--theme-color-light);
    color: var(--theme-color-2);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(174 174 174 / 1%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
    padding-bottom: 30px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--theme-color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-color-2);
    display: flex;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--theme-color-text-light);
    padding: 4px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--theme-color-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--theme-color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    display: block;
    min-height: 96px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--theme-color-1);
    background: var(--theme-color-light);
}

.file-upload:focus-visible {
    outline: 3px solid var(--theme-color-1);
    outline-offset: 2px;
}

.file-upload i {
    font-size: 36px;
    color: var(--theme-color-2);
    margin-bottom: 8px;
}

.file-upload p {
    font-size: 13px;
    color: var(--theme-color-text-light);
}

.file-list {
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--theme-color-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.file-item i {
    color: var(--theme-color-2);
}

.file-item .file-name {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item .file-remove {
    background: none;
    border: none;
    color: var(--theme-color-danger);
    cursor: pointer;
    font-size: 16px;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 360px;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.notifications-dropdown.active {
    display: block;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--theme-color-border);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--theme-color-light);
}

.notification-item.unread {
    background: var(--theme-color-light);
}

.notification-item .notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color-2);
    margin-bottom: 4px;
}

.notification-item .notif-message {
    font-size: 12px;
    color: var(--theme-color-text-light);
    margin-bottom: 4px;
}

.notification-item .notif-time {
    font-size: 11px;
    color: #999;
}

/* Calendar */
.calendar {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-color-2);
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    background: var(--theme-color-gray);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    color: var(--theme-color-2);
    transition: var(--transition);
}

.calendar-nav button:hover {
    background: var(--theme-color-1);
}

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

.calendar-day-name {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-color-2);
    background: var(--theme-color-gray);
    border-radius: var(--radius-sm);
}

.calendar-day {
    aspect-ratio: 1;
    padding: 6px;
    border: 1px solid var(--theme-color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    background: var(--theme-color-light);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.today {
    border-color: var(--theme-color-1);
    background: var(--theme-color-light);
}

.calendar-day .day-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color-2);
}

.calendar-day .day-tasks {
    margin-top: 4px;
    font-size: 10px;
}

.calendar-day .task-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 1px;
}

.task-dot.pending { background: #ffc107; }
.task-dot.in_progress { background: #007bff; }
.task-dot.completed { background: #28a745; }

/* Keep the full calendar visible without scrolling on desktop screens. */
@media (min-width: 769px) {
    .calendar {
        height: calc(100vh - 140px);
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .calendar-header {
        flex: 0 0 auto;
        margin-bottom: 12px;
    }

    .calendar-grid {
        flex: 1 1 auto;
        min-height: 0;
        grid-auto-rows: minmax(0, 1fr);
    }

    .calendar-day {
        aspect-ratio: auto;
        min-height: 0;
    }
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-sm);
}

.login-logo {
    width: 70px;
    height: 70px;
    background: var(--theme-color-1);
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--theme-color-2);
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--theme-color-2);
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--theme-color-text-light);
    margin-bottom: 30px;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: white;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: toastIn 0.3s ease;
    border:1px solid;
    border-right: 4px solid;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success { border-color: var(--theme-color-success); }
.toast.error { border-color: var(--theme-color-danger); }
.toast.warning { border-color: var(--theme-color-warning); }
.toast.info { border-color: var(--theme-color-info); }

.toast i {
    font-size: 20px;
}

.toast.success i { color: var(--theme-color-success); }
.toast.error i { color: var(--theme-color-danger); }
.toast.warning i { color: var(--theme-color-warning); }
.toast.info i { color: var(--theme-color-info); }

.toast-message {
    flex: 1;
    font-size: 13px;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 253, 238, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--theme-color-border);
    border-top-color: var(--theme-color-1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--theme-color-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--theme-color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color-2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--theme-color-text-light);
}

.empty-state i {
    font-size: 64px;
    color: var(--theme-color-border);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--theme-color-2);
}

.empty-state p {
    font-size: 13px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--theme-color-border);
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.tab {
    display: flex;
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-color-text-light);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-family: inherit;
    gap: 5px;
}

.tab:hover {
    color: var(--theme-color-2);
}

.tab.active {
    color: var(--theme-color-2);
    border-bottom-color: var(--theme-color-1);
}

/* Timeline */
.timeline {
    position: relative;
    padding-right: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--theme-color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--theme-color-1);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--theme-color-1);
}

.timeline-time {
    font-size: 11px;
    color: var(--theme-color-text-light);
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 13px;
}

.timeline-user {
    font-weight: 600;
    color: var(--theme-color-2);
}
/* --- Ø¨Ù‡Ø¨ÙˆØ¯ Ù„ÙˆØ¯ÛŒÙ†Ú¯ --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(174 174 174 / 1%);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ Ú©Ø§Ù…Ù„ Ù…ÙˆØ¨Ø§ÛŒÙ„ --- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%); /* Ù…Ø®ÙÛŒ Ø¯Ø± Ø³Ù…Øª Ø±Ø§Ø³Øª Ø¨Ø±Ø§ÛŒ RTL */
        width: 280px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Ù¾Ø³â€ŒØ²Ù…ÛŒÙ†Ù‡ ØªÛŒØ±Ù‡ Ù‡Ù†Ú¯Ø§Ù… Ø¨Ø§Ø² Ø´Ø¯Ù† Ù…Ù†Ùˆ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }
    
    .sidebar-backdrop.active {
        display: block;
    }
    
    .main-content {
        margin-right: 0 !important;
        width: 100%;
    }
    
    .topbar {
        padding: 12px 16px;
    }
    
    .content-area {
        width: 100%;
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Ù…ÙˆØ¯Ø§Ù„ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
    .modal {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 16px;
    }
    
    /* Ø¬Ø¯Ø§ÙˆÙ„ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
    .table-container {
        border-radius: var(--radius-sm);
        border: 0px solid var(--theme-color-border);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .login-box {
        padding: 24px;
    }
}
/* ======================================
   Ø¬Ø¯Ø§ÙˆÙ„ Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ Ø¨Ø±Ø§ÛŒ Ù…ÙˆØ¨Ø§ÛŒÙ„
   ====================================== */

/* Ø¯Ø³Ú©ØªØ§Ù¾ - Ø¬Ø¯ÙˆÙ„ Ù…Ø¹Ù…ÙˆÙ„ÛŒ */
@media (min-width: 769px) {
    .responsive-table thead {
        display: table-header-group;
    }
    
    .responsive-table tr {
        display: table-row;
    }
    
    .responsive-table td,
    .responsive-table th {
        display: table-cell;
    }
}

/* Ù…ÙˆØ¨Ø§ÛŒÙ„ - ØªØ¨Ø¯ÛŒÙ„ Ø¨Ù‡ Ú©Ø§Ø±Øª */
@media (max-width: 768px) {
    .responsive-table {
        border: none;
    }
    
    .responsive-table thead {
        display: none; /* Ù‡Ø¯Ø± Ø¬Ø¯ÙˆÙ„ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ Ù…Ø®ÙÛŒ Ø´ÙˆØ¯ */
    }
    
    .responsive-table tbody {
        display: block;
    }
    
    .responsive-table tr {
        display: block;
        background: white;
        border: 1px solid var(--theme-color-border);
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        padding: 16px;
        box-shadow: var(--shadow-sm);
    }
    
    .responsive-table tr:hover {
        background: var(--theme-color-light);
    }
    
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--theme-color-border);
        text-align: right;
        gap: 12px;
    }
    
    .responsive-table td:last-child {
        border-bottom: none;
    }
    
    /* Ù„ÛŒØ¨Ù„ Ù‡Ø± Ø³ØªÙˆÙ† Ù‚Ø¨Ù„ Ø§Ø² Ù…Ù‚Ø¯Ø§Ø± Ù†Ù…Ø§ÛŒØ´ Ø¯Ø§Ø¯Ù‡ Ø´ÙˆØ¯ */
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--theme-color-2);
        font-size: 12px;
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .responsive-table td strong {
        font-size: 14px;
    }
    
    /* Ø³ØªÙˆÙ† Ø¹Ù…Ù„ÛŒØ§Øª Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ Ø¹Ø±Ø¶ Ú©Ø§Ù…Ù„ Ø¨Ú¯ÛŒØ±Ø¯ */
    .responsive-table td.actions-cell {
        flex-direction: row;
        justify-content: flex-end;
        gap: 8px;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid var(--theme-color-border);
    }
    
    .responsive-table td.actions-cell::before {
        content: none;
    }
    
    /* Ø¹Ù†ÙˆØ§Ù† Ø§ØµÙ„ÛŒ ØªØ³Ú© Ø¯Ø± Ú©Ø§Ø±Øª */
    .responsive-table td.title-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-bottom: 12px;
        margin-bottom: 8px;
        border-bottom: 2px solid var(--theme-color-1);
    }
    
    .responsive-table td.title-cell strong {
        font-size: 16px;
        color: var(--theme-color-2);
    }
    
    /* badge Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
    .responsive-table td .badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* ÙˆØ¶Ø¹ÛŒØª Ø®Ø§Ù„ÛŒ */
    .responsive-table .empty-state {
        padding: 40px 20px;
    }
}

/* ØªØ¨Ù„Øª Ùˆ Ù…ÙˆØ¨Ø§ÛŒÙ„ Ú©ÙˆÚ†Ú© */
@media (max-width: 480px) {
    .responsive-table td {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .responsive-table td::before {
        font-size: 11px;
        color: var(--theme-color-text-light);
    }
    
    .responsive-table td.actions-cell {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* ÙÙ‡Ø±Ø³Øª ØªØ³Ú© Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ ÙÙ‚Ø· Ø§Ø·Ù„Ø§Ø¹Ø§Øª Ø¶Ø±ÙˆØ±ÛŒ Ø±Ø§ Ø¨Ù‡ Ø´Ú©Ù„ Ø¬Ù…Ø¹â€ŒÙˆØ¬ÙˆØ± Ù†Ø´Ø§Ù† Ù…ÛŒâ€ŒØ¯Ù‡Ø¯. */
@media (max-width: 768px) {
    #tasks-tbody tr .task-mobile-hide {
        display: none !important;
    }
    #tasks-tbody tr {
        padding: 9px 12px;
        margin-bottom: 8px;
    }
    #tasks-tbody tr td {
        padding: 4px 0;
        font-size: 12px;
        border-bottom: 0;
    }
    #tasks-tbody tr td::before {
        min-width: 66px;
    }
    #tasks-tbody tr td.title-cell {
        padding-bottom: 6px;
        margin-bottom: 4px;
    }
    #tasks-tbody tr td.title-cell strong {
        font-size: 14px;
    }
}
/* Ø§Ø³Ú©Ø±ÙˆÙ„ Ø§ÙÙ‚ÛŒ Ø¨Ø±Ø§ÛŒ Ø¬Ø¯Ø§ÙˆÙ„ÛŒ Ú©Ù‡ Ú©Ø§Ø±Øª Ù†Ù…ÛŒâ€ŒØ´ÙˆÙ†Ø¯ */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tasks-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 4px 2px;
    color: var(--theme-color-text-light);
    font-size: 12px;
}

.tasks-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .tasks-pagination {
        gap: 8px;
        font-size: 11px;
    }

    .tasks-pagination .btn {
        padding: 6px 9px;
    }
}

/* Ø§Ù†ÛŒÙ…ÛŒØ´Ù† ÙˆØ±ÙˆØ¯ Ú©Ø§Ø±Øªâ€ŒÙ‡Ø§ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
@media (max-width: 768px) {
    .responsive-table tr {
        animation: slideInUp 0.3s ease forwards;
        opacity: 0;
    }
    
    .responsive-table tr:nth-child(1) { animation-delay: 0.05s; }
    .responsive-table tr:nth-child(2) { animation-delay: 0.1s; }
    .responsive-table tr:nth-child(3) { animation-delay: 0.15s; }
    .responsive-table tr:nth-child(4) { animation-delay: 0.2s; }
    .responsive-table tr:nth-child(5) { animation-delay: 0.25s; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ø­Ø§Ù„Øª ÙØ¹Ø§Ù„ Ù‡Ù†Ú¯Ø§Ù… Ù„Ù…Ø³ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
@media (max-width: 768px) {
    .responsive-table tr:active {
        background: var(--theme-color-light);
        transform: scale(0.99);
        transition: all 0.1s ease;
    }
}
/* ========== Ø¯Ú©Ù…Ù‡ Ø¨Ø³ØªÙ† Ù…Ù†Ùˆ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ ========== */
.sidebar-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-right: auto;
    transition: var(--transition);
}

.sidebar-close-btn:hover {
    background: rgba(252, 214, 3, 0.2);
    color: var(--theme-color-1);
}

@media (max-width: 768px) {
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-header {
        justify-content: space-between;
    }
}

/* ========== Ø¯Ú©Ù…Ù‡ Ù†ØµØ¨ PWA ========== */
.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--theme-color-1);
    color: var(--theme-color-2);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    animation: pulseInstall 2s infinite;
}

.install-btn:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.install-btn i {
    font-size: 16px;
}

@keyframes pulseInstall {
    0%, 100% { box-shadow: 0 0 0 0 rgba(252, 214, 3, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(252, 214, 3, 0); }
}

@media (max-width: 480px) {
    .install-btn .install-text {
        display: none;
    }
    .install-btn {
        padding: 8px 10px;
    }
}

/* ========== Backdrop Ù…Ù†Ùˆ - Ø¨Ù‡Ø¨ÙˆØ¯ ========== */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(178 178 178 / 18%);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Ø§Ù†ÛŒÙ…ÛŒØ´Ù† ÙˆØ±ÙˆØ¯ Ù…Ù†Ùˆ Ø§Ø² Ø±Ø§Ø³Øª */
@media (max-width: 768px) {
    .sidebar {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}
/* Ù¾Ø´ØªÛŒØ¨Ø§Ù†ÛŒ Ø§Ø² ØµÙØ­Ù‡â€ŒÙ†Ù…Ø§ÛŒØ´â€ŒÙ‡Ø§ÛŒ Ù†Ø§Ú†â€ŒØ¯Ø§Ø± (Ø¢ÛŒÙÙˆÙ† Ùˆ Ø§Ù†Ø¯Ø±ÙˆÛŒØ¯Ù‡Ø§ÛŒ Ø¬Ø¯ÛŒØ¯) */
body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* Ø¬Ù„ÙˆÚ¯ÛŒØ±ÛŒ Ø§Ø² Ø§Ø³Ú©Ø±ÙˆÙ„ Ø§Ù„Ø§Ø³ØªÛŒÚ© (Ú©Ø´ Ø¢Ù…Ø¯Ù† ØµÙØ­Ù‡) Ø¯Ø± Ø¢ÛŒÙÙˆÙ† */
    overscroll-behavior-y: none; 
}

/* Ø§Ø·Ù…ÛŒÙ†Ø§Ù† Ø§Ø² Ø§ÛŒÙ†Ú©Ù‡ Ù‡Ø¯Ø± Ø§Ù¾Ù„ÛŒÚ©ÛŒØ´Ù† Ø²ÛŒØ± Ù†Ø§Ú† Ù†Ù…ÛŒâ€ŒØ±ÙˆØ¯ */
.topbar {
    padding-top: calc(16px + env(safe-area-inset-top));
}

/* Ø§Ø·Ù…ÛŒÙ†Ø§Ù† Ø§Ø² Ø§ÛŒÙ†Ú©Ù‡ Ù…Ù†ÙˆÛŒ Ù¾Ø§ÛŒÛŒÙ† ÛŒØ§ Ø¯Ú©Ù…Ù‡â€ŒÙ‡Ø§ Ø±ÙˆÛŒ Ù†ÙˆØ§Ø± Home Ø¢ÛŒÙÙˆÙ† Ù†Ù…ÛŒâ€ŒØ±ÙˆÙ†Ø¯ */
.sidebar-footer, .modal-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
/* ========== Ù¾Ø§Ù¾â€ŒØ¢Ù¾ Ù†ØµØ¨ Ø§Ù¾Ù„ÛŒÚ©ÛŒØ´Ù† (Ù…Ø®ØµÙˆØµ Ù…ÙˆØ¨Ø§ÛŒÙ„) ========== */
.install-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 43, 124, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.install-prompt-overlay.active {
    opacity: 1;
    visibility: visible;
}

.install-prompt-card {
    background: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 32px 24px;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.install-prompt-overlay.active .install-prompt-card {
    transform: translateY(0);
}

.install-prompt-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--theme-color-gray);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--theme-color-text-light);
    font-size: 16px;
    transition: var(--transition);
}

.install-prompt-close:hover {
    background: var(--theme-color-border);
    color: var(--theme-color-2);
}

.install-prompt-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--theme-color-1) 0%, #ffd700 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--theme-color-2);
    box-shadow: 0 8px 24px rgba(252, 214, 3, 0.3);
    animation: bounceIcon 2s infinite;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.install-prompt-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-color-2);
    margin-bottom: 12px;
}

.install-prompt-text {
    font-size: 14px;
    color: var(--theme-color-text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.install-prompt-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    text-align: right;
}

.install-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--theme-color-light);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--theme-color-2);
    font-weight: 500;
}

.install-feature i {
    font-size: 20px;
    color: var(--theme-color-1);
    flex-shrink: 0;
}

.install-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.install-prompt-btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.install-prompt-btn-primary {
    background: var(--theme-color-2);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 43, 124, 0.3);
}

.install-prompt-btn-primary:hover {
    background: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 43, 124, 0.4);
}

.install-prompt-btn-primary i {
    font-size: 18px;
}

.install-prompt-btn-secondary {
    background: var(--theme-color-gray);
    color: var(--theme-color-text-light);
}

.install-prompt-btn-secondary:hover {
    background: var(--theme-color-border);
    color: var(--theme-color-2);
}

/* Ø¯Ø± Ø¯Ø³Ú©ØªØ§Ù¾ Ù¾Ø§Ù¾â€ŒØ¢Ù¾ Ø¨Ù‡ ØµÙˆØ±Øª ÙˆØ³Ø· ØµÙØ­Ù‡ Ù†Ù…Ø§ÛŒØ´ Ø¯Ø§Ø¯Ù‡ Ø´ÙˆØ¯ */
@media (min-width: 769px) {
    .install-prompt-overlay {
        align-items: center;
    }
    
    .install-prompt-card {
        border-radius: 24px;
        max-width: 450px;
        transform: translateY(-30px);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }
    
    .install-prompt-overlay.active .install-prompt-card {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ù…Ø®ÙÛŒ Ú©Ø±Ø¯Ù† Ø¯Ú©Ù…Ù‡ Ù†ØµØ¨ Ø¯Ø³Ú©ØªØ§Ù¾ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Ø§Ù†ÛŒÙ…ÛŒØ´Ù† ÙˆØ±ÙˆØ¯ Ø§Ø² Ù¾Ø§ÛŒÛŒÙ† Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
@media (max-width: 768px) {
    .install-prompt-card {
        animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
/* ========== Ù†Ù…Ø§ÛŒØ´ ØªØ³Ú©â€ŒÙ‡Ø§ Ø¯Ø± ØªÙ‚ÙˆÛŒÙ… ========== */
.calendar-day {
    position: relative;
    min-height: 65px;
    padding: 6px;
}

.day-tasks-list {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-task-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 2px 4px;
    background: rgba(252, 214, 3, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-task-item:hover {
    background: rgba(252, 214, 3, 0.4);
}

.calendar-task-item .task-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-task-item .task-title-small {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--theme-color-2);
    font-weight: 500;
}

.calendar-task-more {
    font-size: 9px;
    color: var(--theme-color-text-light);
    text-align: center;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .calendar-day {
        min-height: 41px;
        padding: 4px;
    }
    
    .calendar-task-item {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .calendar-task-item .task-title-small {
        display: none;
    }
    
    .calendar-task-more {
        font-size: 8px;
    }
}
/* ========== Ù†Ù…Ø§ÛŒØ´ Ø³Ù…Øª Ø´ØºÙ„ÛŒ ========== */
.user-with-position {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-with-position strong,
.user-with-position span {
    line-height: 1.3;
}

.position-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--theme-color-light);
    color: var(--theme-color-2);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--theme-color-border);
}

/* ========== Ø¬Ø¹Ø¨Ù‡ Ø§Ø·Ù„Ø§Ø¹Ø§Øª Ø§Ø±Ø¬Ø§Ø¹ ========== */
.reassign-info-box {
    background: var(--theme-color-light);
    border: 1px solid var(--theme-color-1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--theme-color-2);
}

.reassign-info-box strong {
    color: var(--theme-color-2);
}

/* ========== Ù…ÙˆØ¨Ø§ÛŒÙ„ ========== */
@media (max-width: 768px) {
    .position-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .user-with-position {
        gap: 4px;
    }
}
.flex-row{
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    align-content: center;
}

/* ========== Ø§Ø³ØªØ§ÛŒÙ„â€ŒÙ‡Ø§ÛŒ Ú¯Ø²Ø§Ø±Ø´ Ø¹Ù…Ù„Ú©Ø±Ø¯ ========== */
.performance-table .deputy-row {
    background: var(--theme-color-light);
    font-weight: 600;
    border-top: 2px solid var(--theme-color-1);
}

.performance-table .deputy-row td {
    padding: 14px 12px;
    color: var(--theme-color-2);
}

.performance-table .deputy-row.top-performer-row {
    background: #e8f7ed;
    border-top-color: #22a447;
}

.performance-table .deputy-row.top-performer-row td {
    color: #176b35;
}

.performance-table .top-rank-badge {
    display: inline-flex;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22a447;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.top-unit-managers {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #b9e5c7;
    border-radius: var(--radius-sm);
    background: #f1fbf4;
}

.top-unit-managers h3 {
    margin: 0 0 12px;
    color: #176b35;
}

.top-unit-manager-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.top-unit-manager-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: #e3f5e9;
    color: #176b35;
}

.top-unit-manager-card > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.top-unit-manager-card small {
    display: block;
    margin-top: 3px;
    color: #477657;
}

.top-unit-manager-score {
    width: 110px;
    flex: 0 0 110px;
}

.performance-table .subordinate-row.top-performer-row {
    background: #e8f7ed;
}

.performance-table .subordinate-row.top-performer-row td {
    color: #176b35;
}

.performance-table .subordinate-row {
    background: white;
    font-size: 13px;
}

.performance-table .subordinate-row td {
    padding: 10px 12px;
    color: var(--theme-color-text);
    border-bottom: 1px solid var(--theme-color-border);
}

.performance-table .subordinate-row:hover {
    background: #fafafa;
}

.performance-table .unit-manager-row td {
    border-top: 3px solid #74a982;
    background: #f3faf5;
}

.performance-table .nested-expert-row td:first-child {
    border-right: 4px solid #6b9d78;
    background: #f8fcf9;
}

.performance-table .hierarchy-branch {
    display: inline-block;
    min-width: 34px;
    margin-left: 6px;
    color: #4c855b;
    font-family: monospace;
    font-weight: 800;
}

/* Ù†ÙˆØ§Ø± Ù¾ÛŒØ´Ø±ÙØª Ø¯Ø±ØµØ¯ Ù…ÙˆÙÙ‚ÛŒØª */
.progress-bar-container {
    width: 100%;
    background: #e9ecef;
    border-radius: 10px;
    height: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-color-1) 0%, #ffd700 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-color-2);
    z-index: 1;
}

/* Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ Ú¯Ø²Ø§Ø±Ø´ Ø¹Ù…Ù„Ú©Ø±Ø¯ */
@media (max-width: 768px) {
    .performance-table .subordinate-row td.title-cell span {
        padding-right: 12px;
    }
    
    .progress-bar-container {
        height: 20px;
    }
    .card-header{
    display: flex;
    flex-direction: column;
}
    .card-header .form-control{width: 180px !important;}
}
.title-cell span{
    display: flex;
    gap: 5px;
}
/* ========== Overlay Ø±ÙˆØ² Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ ========== */
.day-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(174 174 174 / 1%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 0;
}

.day-overlay.active {
    opacity: 1;
    visibility: visible;
}

.day-overlay-content {
    background: white;
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.3);
    transform-origin: var(--origin-x, center) var(--origin-y, center);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.day-overlay.active .day-overlay-content {
    transform: scale(1);
    opacity: 1;
}

.day-overlay-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--theme-color-2) 0%, var(--theme-color-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-overlay-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-overlay-title i {
    font-size: 32px;
    color: var(--theme-color-1);
}

.day-overlay-date {
    font-size: 20px;
    font-weight: 700;
}

.day-overlay-year {
    font-size: 13px;
    opacity: 0.8;
}

.day-overlay-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.day-overlay-close:hover {
    background: rgba(252, 214, 3, 0.3);
    color: var(--theme-color-1);
}

.day-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: calc(90vh - 180px);
}

.day-tasks-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--theme-color-light);
    border-radius: var(--radius-md);
    color: var(--theme-color-2);
    font-weight: 600;
    margin-bottom: 12px;
}

.day-tasks-count i {
    color: var(--theme-color-1);
    font-size: 18px;
}

.day-tasks-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.day-task-mobile-item {
    background: white;
    border: 1px solid var(--theme-color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
    border-right: 4px solid var(--theme-color-1);
}

.day-task-mobile-item:nth-child(1) { animation-delay: 0.1s; }
.day-task-mobile-item:nth-child(2) { animation-delay: 0.15s; }
.day-task-mobile-item:nth-child(3) { animation-delay: 0.2s; }
.day-task-mobile-item:nth-child(4) { animation-delay: 0.25s; }
.day-task-mobile-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-task-mobile-item:hover,
.day-task-mobile-item:active {
    background: var(--theme-color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.task-mobile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.task-mobile-header strong {
    color: var(--theme-color-2);
    font-size: 14px;
    flex: 1;
}

.task-mobile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--theme-color-text-light);
}

.task-mobile-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-mobile-info i {
    font-size: 14px;
}

.day-overlay-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--theme-color-border);
    background: var(--theme-color-gray);
}

.empty-day-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--theme-color-text-light);
}

.empty-day-state i {
    font-size: 56px;
    color: var(--theme-color-border);
    margin-bottom: 12px;
    display: block;
}

.empty-day-state h4 {
    display: block;
    font-size: 16px;
    color: var(--theme-color-2);
    margin-bottom: 8px;
}

.empty-day-state p {
    font-size: 13px;
}

/* ========== Ù„ÛŒØ³Øª ØªØ³Ú©â€ŒÙ‡Ø§ÛŒ Ø±ÙˆØ² Ø¯Ø± Ø¯Ø³Ú©ØªØ§Ù¾ ========== */
.day-tasks-desktop-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.day-task-desktop-item {
    background: white;
    border: 1px solid var(--theme-color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-right: 4px solid var(--theme-color-1);
}

.day-task-desktop-item:hover {
    background: var(--theme-color-light);
    transform: translateX(-4px);
    box-shadow: var(--shadow-sm);
}

.task-desktop-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.task-desktop-header strong {
    color: var(--theme-color-2);
    font-size: 15px;
    flex: 1;
}

.task-desktop-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--theme-color-text-light);
}

.task-desktop-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ ========== */
@media (min-width: 769px) {
    .day-overlay {
        align-items: center;
        padding: 20px;
    }
    
    .day-overlay-content {
        max-width: 500px;
        border-radius: 24px;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .day-overlay-date {
        font-size: 18px;
    }
    
    .day-overlay-title i {
        font-size: 26px;
    }
}
/* ========== Ú©Ø§Ø±Øª ØªØ§Ø±ÛŒØ® Ùˆ Ø³Ø§Ø¹Øª ========== */
.date-time-card {
    background: linear-gradient(135deg, var(--theme-color-2) 0%, var(--theme-color-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.date-time-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 214, 3, 0.1) 0%, transparent 70%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.date-time-card .stat-icon.date-icon {
    background: rgba(252, 214, 3, 0.2);
    color: var(--theme-color-1);
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.date-time-card .stat-info.date-info {
    position: relative;
    z-index: 1;
}

.date-day-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-color-1);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-full {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.2;
}

.date-time {
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family:IRANSans;
}

/* Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ */
@media (max-width: 768px) {
    .date-full {
        font-size: 16px;
    }
    
    .date-time {
        font-size: 24px;
    }
    
    .date-day-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .date-time-card {
        padding: 16px;
    }
    
    .date-time-card .stat-icon.date-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .date-full {
        font-size: 14px;
    }
    
    .date-time {
        font-size: 20px;
    }
}
/* ========== Custom Select Ø¨Ø§ Ø¬Ø³ØªØ¬Ùˆ ========== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--theme-color-border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    min-height: 42px;
}

.custom-select-trigger:hover {
    border-color: var(--theme-color-1);
}

.custom-select-trigger.active {
    border-color: var(--theme-color-1);
    box-shadow: 0 0 0 3px rgba(252, 214, 3, 0.15);
}

.custom-select-value {
    flex: 1;
    font-size: 13px;
    color: var(--theme-color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-value.placeholder {
    color: var(--theme-color-text-light);
}

.custom-select-arrow {
    color: var(--theme-color-text-light);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

/* Dropdown Ø¯Ø± Ø¯Ø³Ú©ØªØ§Ù¾ */
.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--theme-color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-select-dropdown.active {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Box */
.custom-select-search {
    padding: 10px;
    border-bottom: 1px solid var(--theme-color-border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.custom-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--theme-color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
}

.custom-select-search input:focus {
    outline: none;
    border-color: var(--theme-color-1);
}

/* Options */
.custom-select-options {
    padding: 4px 0;
}

.custom-select-group-label {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-color-text-light);
    text-transform: uppercase;
    background: var(--theme-color-gray);
    border-bottom: 1px solid var(--theme-color-border);
}

.custom-select-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.custom-select-option:hover {
    background: var(--theme-color-light);
}

.custom-select-option.selected {
    background: var(--theme-color-1);
    color: var(--theme-color-2);
    font-weight: 600;
}

.custom-select-option.hidden {
    display: none;
}

.custom-select-option .option-name {
    flex: 1;
}

.custom-select-option .option-position {
    font-size: 11px;
    color: var(--theme-color-text-light);
}

.custom-select-option.selected .option-position {
    color: var(--theme-color-2);
    opacity: 0.7;
}

/* No Results */
.custom-select-no-results {
    padding: 20px;
    text-align: center;
    color: var(--theme-color-text-light);
    font-size: 13px;
}

/* ========== Modal Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ ========== */
@media (max-width: 768px) {
    .custom-select-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        visibility: hidden;
    }
    
    .custom-select-dropdown.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .custom-select-search {
        padding: 16px;
        flex: 0 0 auto;
    }
    
    .custom-select-search input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .custom-select-option {
        padding: 14px 16px;
        font-size: 14px;
    }

    .custom-select-options {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-select-group-label {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    /* Backdrop */
    .custom-select-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(44, 43, 124, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .custom-select-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Handle bar */
    .custom-select-dropdown::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--theme-color-border);
        border-radius: 2px;
        margin: 12px auto;
    }
}

/* ========== Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ ========== */
@media (max-width: 480px) {
    .custom-select-trigger {
        padding: 12px;
    }
    
    .custom-select-value {
        font-size: 14px;
    }
}
/* ========== ØªØ¨â€ŒÙ‡Ø§ÛŒ ÙˆØ¶Ø¹ÛŒØª ØªØ³Ú©â€ŒÙ‡Ø§ ========== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--theme-color-border);
    margin-bottom: 16px;
}

.tab {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--theme-color-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-color-text);
    transition: var(--transition);
    font-family: inherit;
}

.tab:hover {
    background: var(--theme-color-light);
    border-color: var(--theme-color-1);
}

.tab.active {
    background: var(--theme-color-2);
    color: white;
    border-color: var(--theme-color-2);
}

.tab .tab-count {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ ØªØ¨â€ŒÙ‡Ø§ */
@media (max-width: 768px) {
    /* Compact task rows: title and creator, then deadline/status side by side. */
    #tasks-tbody tr.task-mobile-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0 12px;
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    #tasks-tbody tr.task-mobile-row td {
        min-width: 0;
        padding: 4px 0;
        border: 0;
        gap: 6px;
        font-size: 12px;
    }

    #tasks-tbody tr td.title-cell,
    #tasks-tbody tr td[data-label="Ø§ÛŒØ¬Ø§Ø¯Ú©Ù†Ù†Ø¯Ù‡"] {
        grid-column: 1 / -1;
    }

    #tasks-tbody tr td.title-cell { grid-row: 1; }
    #tasks-tbody tr td[data-label="Ù…Ù‡Ù„Øª"] { grid-column: 1; grid-row: 2; }
    #tasks-tbody tr td[data-label="ÙˆØ¶Ø¹ÛŒØª"] { grid-column: 2; grid-row: 2; }
    #tasks-tbody tr td[data-label="Ø§ÛŒØ¬Ø§Ø¯Ú©Ù†Ù†Ø¯Ù‡"] { grid-row: 3; }

    #tasks-tbody tr td.title-cell {
        padding: 0 0 6px;
        margin: 0 0 3px;
        border-bottom: 1px solid var(--theme-color-border);
    }

    #tasks-tbody tr td.title-cell::before {
        content: none;
    }

    #tasks-tbody tr td.title-cell strong {
        font-size: 14px;
        line-height: 1.5;
    }

    #tasks-tbody tr td[data-label="Ù…Ù‡Ù„Øª"],
    #tasks-tbody tr td[data-label="ÙˆØ¶Ø¹ÛŒØª"] {
        justify-content: flex-start;
        white-space: nowrap;
    }

    #tasks-tbody tr td[data-label="Ù…Ù‡Ù„Øª"]::before,
    #tasks-tbody tr td[data-label="ÙˆØ¶Ø¹ÛŒØª"]::before {
        min-width: 0;
        font-size: 10px;
        color: var(--theme-color-text-light);
    }

    /* User cards show only the essentials until tapped. */
    .user-mobile-row {
        position: relative;
        cursor: pointer;
        padding: 9px 12px !important;
        margin-bottom: 7px !important;
    }

    .user-mobile-row td.title-cell,
    .user-mobile-row td[data-label="Ø³Ù…Øª"],
    .user-mobile-row td[data-label="ÙˆØ¶Ø¹ÛŒØª"] {
        padding: 3px 0;
        border: 0;
    }

    .user-mobile-row td.title-cell {
        margin: 0;
        padding-bottom: 4px;
        border: 0;
    }

    .user-mobile-row td.title-cell::before,
    .user-mobile-row td[data-label="Ø³Ù…Øª"]::before,
    .user-mobile-row td[data-label="ÙˆØ¶Ø¹ÛŒØª"]::before {
        content: none;
    }

    .user-mobile-row td.title-cell strong {
        font-size: 14px;
    }

    .user-mobile-row .user-mobile-details {
        display: none !important;
    }

    .user-mobile-row.mobile-expanded .user-mobile-details {
        display: flex !important;
    }

    .user-mobile-row.mobile-expanded td.actions-cell {
        display: flex !important;
    }

    .user-mobile-row.mobile-expanded td.title-cell,
    .user-mobile-row.mobile-expanded td[data-label="Ø³Ù…Øª"] {
        border-bottom: 1px solid var(--theme-color-border);
    }

    .responsive-table tr {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .responsive-table td {
        padding: 5px 0;
        gap: 8px;
        font-size: 12px;
    }

    .responsive-table td::before {
        min-width: 68px;
        font-size: 11px;
    }

    .responsive-table td.title-cell {
        padding-bottom: 6px;
        margin-bottom: 4px;
    }

    .responsive-table td.title-cell strong {
        font-size: 14px;
    }

    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* ========== Ø±Ù†Ú¯â€ŒØ¨Ù†Ø¯ÛŒ ÙˆØ¶Ø¹ÛŒØªâ€ŒÙ‡Ø§ Ø¯Ø± ØªÙ‚ÙˆÛŒÙ… ========== */
.calendar-task-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.calendar-task-item.status-pending {
    background: rgba(245, 158, 11, 0.15);
    border-right-color: #f59e0b;
}

.calendar-task-item.status-accepted {
    background: rgba(59, 130, 246, 0.15);
    border-right-color: #3b82f6;
}

.calendar-task-item.status-in_progress {
    background: rgba(139, 92, 246, 0.15);
    border-right-color: #8b5cf6;
}

.calendar-task-item.status-submitted {
    background: rgba(6, 182, 212, 0.15);
    border-right-color: #06b6d4;
}

.calendar-task-item.status-deputy_review {
    background: rgba(236, 72, 153, 0.15);
    border-right-color: #ec4899;
}

.calendar-task-item.status-manager_review {
    background: rgba(249, 115, 22, 0.15);
    border-right-color: #f97316;
}

.calendar-task-item.status-completed {
    background: rgba(16, 185, 129, 0.15);
    border-right-color: #10b981;
}

.calendar-task-item.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    border-right-color: #ef4444;
}

.calendar-task-item:hover {
    transform: translateX(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-task-item .task-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-task-item .task-title-small {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--theme-color-2);
    font-weight: 500;
}

/* ========== Legend (Ø±Ø§Ù‡Ù†Ù…Ø§ÛŒ Ø±Ù†Ú¯â€ŒÙ‡Ø§) ========== */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: var(--theme-color-gray);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--theme-color-text);
    font-weight: 500;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ ========== */
@media (max-width: 768px) {
    .calendar-legend {
        gap: 8px;
        padding: 8px 12px;
    }
    
    .legend-item {
        font-size: 10px;
        gap: 4px;
    }
    
    .legend-dot {
        width: 8px;
        height: 8px;
    }
    
    .calendar-task-item {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .calendar-task-item .task-title-small {
        display: none;
    }
}
/* ========== Toast Ø§Ø¹Ù„Ø§Ù† Ø²Ù†Ø¯Ù‡ ========== */
.notif-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(44, 43, 124, 0.25);
    border-right: 4px solid var(--theme-color-1);
    min-width: 320px;
    max-width: 420px;
    margin-bottom: 10px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notif-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notif-toast::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color-1), var(--theme-color-2));
    animation: notifProgress 8s linear forwards;
}

@keyframes notifProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.notif-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color-1) 0%, #ffd700 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color-2);
    font-size: 18px;
    flex-shrink: 0;
    animation: bellRing 0.6s ease;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
}

.notif-toast-content {
    flex: 1;
    min-width: 0;
}

.notif-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-color-2);
    margin-bottom: 4px;
}

.notif-toast-message {
    font-size: 12px;
    color: var(--theme-color-text-light);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-toast-close {
    background: none;
    border: none;
    color: var(--theme-color-text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.notif-toast-close:hover {
    background: var(--theme-color-gray);
    color: var(--theme-color-2);
}

/* ========== Badge Pulse Animation ========== */
.notification-badge.pulse {
    animation: badgePulse 1s ease;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.3); }
}

/* ========== Ø¯Ú©Ù…Ù‡ Mute ========== */
.notification-mute-btn {
    background: transparent;
    border: 1px solid var(--theme-color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--theme-color-2);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.notification-mute-btn:hover {
    background: var(--theme-color-light);
    border-color: var(--theme-color-1);
}

.notification-mute-btn.muted {
    color: var(--theme-color-text-light);
    background: var(--theme-color-gray);
}

.notification-mute-btn.muted::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--theme-color-danger);
    transform: rotate(-45deg);
    border-radius: 2px;
}

/* ========== Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ ========== */
@media (max-width: 768px) {
    .notif-toast {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }
    
    .notification-mute-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ========== Ø­Ø§Ù„Øª ØªØ§Ø±ÛŒÚ© Toast ========== */
@media (prefers-color-scheme: dark) {
    .notif-toast {
        background: #1f2937;
        color: white;
    }
    
    .notif-toast-title {
        color: white;
    }
    
    .notif-toast-message {
        color: #d1d5db;
    }
}
