*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif;
    direction: rtl;
    background-color: #f9fafb;
    color: #111827;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==================== Login Page ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
    border: 1px solid #f3f4f6;
    animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
    text-align: right;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2937;
    transition: all 0.15s ease;
    outline: none;
}

.input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background-color: #fff;
}

.input-field::placeholder {
    color: #9ca3af;
}

.text-left {
    text-align: left;
}

.input-icon-wrapper,
.password-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.15s ease;
}

.input-icon-wrapper:focus-within,
.password-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background-color: #fff;
}

.input-icon-wrapper .input-field,
.password-wrapper .input-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0;
    min-width: 0;
}

.input-icon-wrapper .input-field:focus,
.password-wrapper .input-field:focus {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}

.input-icon {
    flex-shrink: 0;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 0.75rem;
}

.password-toggle:hover {
    color: #6366f1;
}

.password-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}

.hidden {
    display: none !important;
}

.login-error {
    color: #ef4444;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.btn-primary {
    width: 100%;
    background-color: #6366f1;
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: #4f46e5;
}

.btn-lg {
    padding: 0.875rem 1rem;
    margin-top: 0.5rem;
}

.btn-secondary {
    flex: 1;
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* ==================== App Container ==================== */
.app-container {
    min-height: 100vh;
    padding: 2.5rem 1rem;
}

@media (min-width: 640px) {
    .app-container { padding: 2.5rem 1.5rem; }
}

@media (min-width: 1024px) {
    .app-container { padding: 2.5rem 2rem; }
}

.app-inner {
    max-width: 42rem;
    margin: 0 auto;
}

.app-header {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    padding: 0;
}

@media (max-width: 480px) {
    .app-header {
        gap: 0.375rem;
    }
    .app-header .logout-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.375rem;
        gap: 0.25rem;
        white-space: nowrap;
    }
}

.app-header .logout-btn {
    flex: 1;
    justify-content: center;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: 0.75rem 0.75rem;
    border-radius: 1rem;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.logout-btn:hover {
    color: #e11d48;
    background-color: #fff1f2;
    border-color: #fecdd3;
}

#trashBtn:hover {
    color: #ef4444;
    background-color: #fef2f2;
    border-color: #fecdd3;
}

#settingsBtn:hover {
    color: #6366f1;
    background-color: #eef2ff;
    border-color: #c7d2fe;
}

/* ==================== Task Input ==================== */
.task-input-form {
    margin-bottom: 2rem;
    position: relative;
}

.task-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-left: 3.5rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-family: inherit;
    color: #1f2937;
    transition: all 0.15s;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.task-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.task-input::placeholder {
    color: #9ca3af;
}

.task-add-btn {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background-color: #6366f1;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}

.task-add-btn:hover:not(:disabled) {
    background-color: #4f46e5;
}

.task-add-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ==================== Search ==================== */
.search-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.75rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1f2937;
    transition: all 0.15s;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* ==================== Task List Header ==================== */
.task-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.task-list-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #9ca3af;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: color 0.15s;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sort-btn:hover {
    color: #6366f1;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    border: 1px dashed #e5e7eb;
    font-size: 0.875rem;
}

/* ==================== Task Item ==================== */
.task-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.task-item {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.15s;
    animation: taskEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes taskEnter {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.task-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.task-item-exit {
    animation: taskExit 0.2s ease forwards;
}

@keyframes taskExit {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}

.task-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    gap: 0.5rem;
}

.task-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 1rem;
    min-width: 0;
}

.task-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.15s;
    background: transparent;
    padding: 0;
}

.task-checkbox:hover {
    border-color: #818cf8;
    background-color: #eef2ff;
}

.task-checkbox.checked {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.edit-title-input {
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #6366f1;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    outline: none;
    background: #fff;
    color: #1f2937;
    width: 100%;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.edit-title-input-sm {
    font-size: 0.875rem;
    padding: 0.125rem 0.375rem;
}

.task-title {
    font-size: 1rem;
    transition: all 0.15s;
    overflow-wrap: break-word;
    word-break: normal;
}

.task-title.completed {
    color: #9ca3af;
    text-decoration: line-through;
}

.task-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    margin-right: 2.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.task-date-ltr {
    display: inline-block;
    direction: ltr;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.task-action-btn {
    color: #d1d5db;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.task-action-btn.edit-btn:hover {
    color: #6366f1;
}

.task-action-btn:focus:not(:disabled) {
    opacity: 1;
}

.task-action-btn:hover {
    background-color: #fef2f2;
    color: #ef4444;
}

.task-action-btn.pdf-btn:hover {
    background-color: #eef2ff;
    color: #6366f1;
}

.task-chevron {
    color: #9ca3af;
    padding: 0.5rem;
    display: flex;
}

/* ==================== Subtask Badge ==================== */
.subtask-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid;
    text-align: center;
    font-weight: 500;
    min-width: 2.25rem;
}

.subtask-badge.all-done {
    background-color: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.subtask-badge.partial {
    background-color: #fef3c7;
    color: #a16207;
    border-color: #fde68a;
}

.subtask-badge.none-done {
    background-color: #ffe4e6;
    color: #be123c;
    border-color: #fecdd3;
}

/* ==================== Subtask Section ==================== */
.subtask-section {
    overflow: hidden;
    transition: max-height 0.25s ease-in-out, opacity 0.25s ease-in-out;
    max-height: 0;
    opacity: 0;
}

.subtask-section.open {
    max-height: 1000px;
    opacity: 1;
}

.subtask-inner {
    background-color: rgba(249, 250, 251, 0.5);
    border-top: 1px solid #f3f4f6;
    padding: 0.75rem 1rem;
}

.subtask-list {
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subtask-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subtask-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.subtask-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.15s;
    background: transparent;
    padding: 0;
}

.subtask-checkbox:hover {
    border-color: #818cf8;
    background-color: #eef2ff;
}

.subtask-checkbox.checked {
    background-color: #818cf8;
    border-color: #818cf8;
    color: #fff;
}

.subtask-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.subtask-title {
    font-size: 0.875rem;
    transition: all 0.15s;
    overflow-wrap: break-word;
    word-break: normal;
}

.subtask-title.completed {
    color: #9ca3af;
    text-decoration: line-through;
}

.subtask-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.125rem;
    font-size: 0.625rem;
    color: #9ca3af;
}

.subtask-actions {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-shrink: 0;
}

.subtask-action-btn,
.subtask-delete-btn {
    color: #d1d5db;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.subtask-action-btn {
    opacity: 1;
    color: #d1d5db;
}

.subtask-delete-btn {
    opacity: 1;
}

.subtask-action-btn:hover {
    background-color: #eef2ff;
    color: #6366f1;
}

.subtask-move-btn {
    opacity: 1 !important;
    color: #d1d5db;
}

.subtask-move-btn:hover {
    color: #6b7280 !important;
    background-color: #f3f4f6;
}

.subtask-delete-btn:hover {
    background-color: #fef2f2;
    color: #ef4444;
}

/* Subtask input */
.subtask-input-form {
    padding-right: 2.5rem;
    position: relative;
}

.subtask-input {
    width: 100%;
    background: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    padding-right: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    color: #374151;
    transition: all 0.15s;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.subtask-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.subtask-input::placeholder {
    color: #9ca3af;
}

.subtask-add-btn {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    transition: color 0.15s;
}

.subtask-add-btn:hover:not(:disabled) {
    color: #4f46e5;
}

.subtask-add-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ==================== Confirmation Modal ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 24rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
    0% { opacity: 0; transform: scale(0.95) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.modal-message {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    flex: 1;
    padding: 0.625rem 1rem;
}

/* ==================== Trash Modal ==================== */
#trashModal {
    z-index: 50;
}

.trash-modal-content {
    max-width: 32rem !important;
}

.trash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.trash-header .modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.trash-close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.5rem;
    transition: all 0.15s;
    display: flex;
}

.trash-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.trash-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.trash-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    gap: 0.75rem;
}

.trash-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.trash-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    overflow-wrap: break-word;
    word-break: normal;
}

.trash-item-title.completed {
    text-decoration: line-through;
    color: #9ca3af;
}

.trash-item-date {
    font-size: 0.75rem;
    color: #9ca3af;
    direction: ltr;
    display: inline-block;
}

.trash-item-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.trash-restore-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #eef2ff;
    color: #6366f1;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.15s;
}

.trash-restore-btn:hover {
    background: #6366f1;
    color: #fff;
}

.trash-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    color: #d1d5db;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.trash-delete-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

.trash-footer {
    display: none;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.trash-empty-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    background-color: #ef4444;
    width: auto;
    padding: 0.625rem 1.25rem;
}

.trash-empty-btn:hover {
    background-color: #dc2626;
}

/* ==================== Settings Modal ==================== */
#settingsModal {
    z-index: 50;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.settings-field {
    display: flex;
    flex-direction: column;
}

/* ==================== Notification Toast ==================== */
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 50;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(107, 114, 128, 0.5);
    animation: notifEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

@keyframes notifEnter {
    0% { opacity: 0; transform: translateX(-50%) translateY(50px) scale(0.9); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.notif-exit {
    animation: notifExit 0.2s ease forwards;
}

@keyframes notifExit {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.9); }
}

/* ==================== Task Section Spacing ==================== */
.task-section {
    margin-bottom: 2rem;
}

/* ==================== Stats Bar ==================== */
.stats-container {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-active .stat-value {
    color: #6366f1;
}

.stat-completed .stat-value {
    color: #10b981;
}

.stat-total .stat-value {
    color: #111827;
}

.stat-divider {
    width: 1px;
    height: 2.5rem;
    background: #e5e7eb;
}

/* ==================== Subtask count badge style ==================== */
.subtask-badge {
    display: inline-block;
    line-height: 1.4;
}

/* RTL specific adjustments */
input, textarea, button {
    font-family: inherit;
}
