/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800;900&display=swap');

/* Custom Uyghur font */
@font-face {
    font-family: 'UKIJ Ekran';
    src: url('font/UKIJEkran.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-color: #6366F1;
    --primary-light: rgba(99, 102, 241, 0.1);
    --primary-dark: #4F46E5;
    --secondary-color: #F472B6;
    --success-color: #10B981;
    --success-light: rgba(16, 185, 129, 0.1);
    --danger-color: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning-color: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.1);
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --gray-color: #6B7280;
    --gray-light: #E5E7EB;
    --border-radius: 12px;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --vh: 1vh;
    --font-family: 'UKIJ Ekran', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Reset default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Input elements should use system font */
input, 
input::placeholder,
textarea,
textarea::placeholder {
    font-family: var(--font-family);
}

/* Numbers should use system font */
.time-info,
.stat-value,
.task-time,
.company-info {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Common HTML & Body styles */
html, body {
    height: 100%;
    width: 100%;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--light-color) 0%, white 100%);
    color: var(--dark-color);
    position: fixed;
    overflow: hidden;
    overscroll-behavior: none;
}

/* Common page styles */
.page {
    display: none;
    height: 100vh;
    background: linear-gradient(135deg, var(--light-color) 0%, white 100%);
    direction: ltr;
}

.page.active {
    display: block;
}

/* Brand styles */
.brand {
    margin-bottom: 2.5rem;
    text-align: center;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366F1 0%, #EC4899 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    text-shadow: 4px 4px 20px rgba(99, 102, 241, 0.3);
    letter-spacing: -0.5px;
    user-select: none;
}

.brand-name:hover {
    transform: scale(1.05);
    letter-spacing: 2px;
    text-shadow: 6px 6px 30px rgba(99, 102, 241, 0.4);
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #6366F1 0%, #EC4899 50%, #8B5CF6 100%);
    transform: translateX(-50%);
    transition: width 0.4s ease;
    border-radius: 4px;
    opacity: 0.5;
}

.brand-name:hover::after {
    width: 80%;
}

.brand-slogan {
    color: var(--gray-color);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Auth container styles */
.auth-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-color) 0%, white 100%);
    direction: ltr;
}

/* Form styles */
form {
    width: 100%;
    max-width: 400px;
}

.form-group {
    position: relative;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
}

.form-group input:not([type="time"]):not(.time-input) {
    width: 100%;
    height: 52px;
    padding: 0 1rem 0 3.5rem;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
}

.form-group i {
    position: absolute;
    left: 1rem;
    font-size: 1.25rem;
    color: var(--gray-color);
    opacity: 0.8;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.form-group input:focus + i {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

.form-requirements {
    position: absolute;
    left: 1.25rem;
    bottom: -1.5rem;
    font-size: 0.75rem;
    color: var(--gray-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.form-group input:focus ~ .form-requirements {
    color: var(--primary-color);
    opacity: 1;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.text-link:hover {
    color: var(--secondary-color);
}

/* Plan page styles */
.plan-container {
    padding: 1rem;
    height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    direction: ltr;
    display: flex;
    flex-direction: column;
}

.date-stats-section {
    background: white;
    padding: 1rem;
    margin: -1rem -1rem 0 -1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    background: #F3F4F6;
    padding: 0.75rem 1rem;
    border-radius: 16px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 500;
    height: 32px;
}

.date-display i {
    font-size: 1.25rem;
    color: var(--primary-color);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.date-nav-buttons {
    display: flex;
    gap: 0.375rem;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #E5E7EB;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.nav-btn i {
    font-size: 1.25rem;
}

.nav-btn.prev i {
    transform: rotate(180deg);
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    margin: 1.25rem 0;
    position: relative;
}

.stats-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(239, 68, 68, 0.1) 0%,
        rgba(16, 185, 129, 0.1) 100%
    );
    transform: translateY(-50%);
    z-index: 0;
}

.stat-card {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 70px;
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card.completed {
    background: linear-gradient(135deg, white 0%, var(--success-light) 100%);
    border-color: var(--success-color);
}

.stat-card.completed:hover {
    background: var(--success-color);
    color: white;
}

.stat-card.completed:hover i,
.stat-card.completed:hover .stat-value {
    color: white;
}

.stat-card.total {
    background: linear-gradient(135deg, white 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
}

.stat-card.total:hover {
    background: var(--primary-color);
    color: white;
}

.stat-card.total:hover i,
.stat-card.total:hover .stat-value {
    color: white;
}

.stat-card.rate {
    background: linear-gradient(135deg, white 0%, var(--warning-light) 100%);
    border-color: var(--warning-color);
}

.stat-card.rate:hover {
    background: var(--warning-color);
    color: white;
}

.stat-card.rate:hover i,
.stat-card.rate:hover .stat-value {
    color: white;
}

.stat-card.incomplete {
    background: linear-gradient(135deg, white 0%, var(--danger-light) 100%);
    border-color: var(--danger-color);
    animation: attention 2s ease-in-out infinite;
}

.stat-card.incomplete:hover {
    background: var(--danger-color);
    color: white;
    animation: none;
}

.stat-card.incomplete:hover i,
.stat-card.incomplete:hover .stat-value {
    color: white;
}

@keyframes attention {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    }
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card i {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.stat-card.completed i {
    color: var(--success-color);
}

.stat-card.total i {
    color: var(--primary-color);
}

.stat-card.rate i {
    color: var(--warning-color);
}

.stat-card.incomplete i {
    color: var(--danger-color);
}

/* كىچىك ئېكران ئۈچۈن ماسلاشتۇرۇش */
@media (max-width: 600px) {
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.5rem;
        min-width: 60px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-card i {
        font-size: 1rem;
    }
}

.time-progress-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
    border-radius: 20px;
    padding: 1.25rem;
    margin-top: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.time-progress-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.05) 0%, 
        rgba(16, 185, 129, 0.05) 100%
    );
    z-index: 0;
}

.time-progress {
    height: 8px;
    border-radius: 4px;
    background: #E5E7EB;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.time-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, 
        #EF4444 0%, 
        #F59E0B var(--progress), 
        #10B981 100%
    );
    transition: width 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    position: relative;
    z-index: 1;
}

.elapsed-time {
    color: #EF4444;
    font-size: 1.125rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
    position: relative;
    padding-left: 1.5rem;
}

.elapsed-time::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.current-time {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.current-time::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0.8);
    opacity: 0.2;
}

.remaining-time {
    color: #10B981;
    font-size: 1.125rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
    position: relative;
    padding-right: 1.5rem;
}

.remaining-time::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
    animation-delay: 0.5s;
}

.no-tasks-message {
    padding: 2.5rem;
    text-align: center;
    color: var(--gray-color);
}

.no-tasks-message i {
    font-size: 3rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
    display: block;
}

.no-tasks-message span {
    color: var(--gray-color);
    font-size: 0.9375rem;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    direction: rtl;
}

.task-list::-webkit-scrollbar {
    display: none;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    height: 60px;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    order: 2;
    align-items: center;
    height: 36px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 1;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.1);
    padding: 0.375rem 0.75rem;
    height: 36px;
    border-radius: 100px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-info:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}

.user-info i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.logout-btn,
.add-task-btn,
.refresh-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 100px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.logout-btn {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    display: none;
    position: absolute;
    right: -45px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn.show {
    display: flex;
    right: -45px;
    opacity: 1;
}

.logout-btn:hover,
.add-task-btn:hover,
.refresh-btn:hover {
    transform: translateY(-1px);
    background: rgba(79, 70, 229, 0.15);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

.logout-btn i,
.add-task-btn i,
.refresh-btn i {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Material Icons ئۈچۈن */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.user-info .material-icons-round {
    font-size: 1.35rem;
    opacity: 0.9;
}

.logout-btn .material-icons-round,
.add-task-btn .material-icons-round,
.refresh-btn .material-icons-round {
    font-size: 1.35rem;
    opacity: 0.9;
}

/* مودال كۆزنەك ئايكونلىرى */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 1.25rem;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1.25rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: -1.25rem -1.25rem 1.5rem -1.25rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .material-icons-round {
    font-size: 1.5rem;
    color: white;
}

.form-group {
    padding: 0 0 1rem 0;
}

.form-group:first-of-type {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.priority-options {
    display: flex;
    gap: 0.5rem;
}

.priority-option {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.priority-option[data-value="A"] {
    background: var(--danger-light);
    color: var(--danger-color);
}

.priority-option[data-value="B"] {
    background: var(--primary-light);
    color: var(--primary-color);
}

.priority-option[data-value="C"] {
    background: var(--gray-light);
    color: var(--gray-color);
}

.priority-option.selected[data-value="A"] {
    background: var(--danger-color);
    color: white;
}

.priority-option.selected[data-value="B"] {
    background: var(--primary-color);
    color: white;
}

.priority-option.selected[data-value="C"] {
    background: var(--gray-color);
    color: white;
}

.priority-option:hover {
    transform: translateY(-1px);
}

.priority-option .material-icons-round {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ۋاقىت كىرگۈزۈش رامكىسى */
.form-group input[type="time"],
.form-group .time-input {
    flex: 1;
    height: 48px;
    padding: 0;
    background: #F8F9FA;
    border: none;
    border-radius: 24px;
    font-size: 1.125rem;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

input[type="time"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    background: #F3F4F6;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    resize: none;
    color: var(--dark-color);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    height: 52px;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: #F3F4F6;
    color: var(--dark-color);
}

/* شىركەت ئۇچۇرى */
.company-info {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    direction: ltr;
}

.company-name {
    color: var(--gray-color);
    font-size: 0.875rem;
    margin-bottom: 0.1rem;
}

.company-name-en {
    color: var(--gray-color);
    opacity: 0.7;
    font-size: 0.75rem;
}

/* مەشغۇلات كۇنۇپكىلىرى ئايكونلىرى */
.task-time i {
    color: var(--gray-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.task-card:hover .task-time i {
    color: var(--primary-color);
    opacity: 1;
}

.task-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.task-btn:hover i {
    transform: scale(1.2);
}

.task-btn.completed {
    background-color: var(--success-color);
    color: white;
    opacity: 1;
}

.task-btn.completed:hover {
    background-color: var(--success-color);
    opacity: 0.9;
}

.task-btn.completed i {
    color: white;
    opacity: 1;
}

/* مودال كۆزنەك ئايكونلىرى */
.modal-close i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.modal-close:hover i {
    color: white;
    transform: rotate(90deg);
}

.modal .form-group i {
    color: var(--gray-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modal .form-group select:focus + i,
.modal .form-group textarea:focus + i {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* ئۇچۇر كۆرسىتىش ئايكونلىرى */
.toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    min-width: 320px;
    max-width: 90%;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    direction: rtl;
}

.toast i {
    font-size: 1.25rem;
}

.toast span {
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
}

.toast.show {
    top: 2rem;
}

.toast.success { 
    background: rgba(16, 185, 129, 0.9); 
    color: white;
    border: none;
}

.toast.error { 
    background: rgba(239, 68, 68, 0.9); 
    color: white;
    border: none;
}

.toast.warning { 
    background: rgba(245, 158, 11, 0.9); 
    color: white;
    border: none;
}

.toast.info { 
    background: rgba(99, 102, 241, 0.9); 
    color: white;
    border: none;
}

/* يېڭىلاش كۇنۇپكىسى ئۈچۈن ئايلىنىش ئۈنۈمى */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-btn.loading .material-icons-round {
    animation: spin 1s linear infinite;
}

.refresh-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.refresh-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 100px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}

.refresh-btn .material-icons-round {
    transition: all 0.3s ease;
}

/* ۋاقىت تاللاش دىيالوگى */
.time-picker-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.time-picker-content {
    width: 100%;
    max-width: 300px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 1.25rem;
    direction: rtl;
}

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

.time-picker-header h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-color);
}

.time-picker-body {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    align-items: center;
}

.time-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.time-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    min-width: 2.5ch;
    text-align: center;
}

.time-separator {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray-color);
    margin-top: 0;
    line-height: 1;
    height: 2rem;
    display: flex;
    align-items: center;
}

.time-btn {
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.time-picker-footer {
    display: flex;
    gap: 0.75rem;
}

.time-picker-footer button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-picker-footer .btn-confirm {
    background: var(--primary-color);
    color: white;
}

.time-picker-footer .btn-cancel {
    background: #F3F4F6;
    color: var(--dark-color);
}

.time-picker-footer button:hover {
    transform: translateY(-1px);
}

.task-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    direction: rtl;
    height: auto;
    min-height: 160px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--gray-light);
}

.task-card.completed {
    background: #F8FFF9;
    opacity: 0.75;
    filter: grayscale(20%);
    border: 1px solid var(--success-color);
}

.completed-stamp {
    position: absolute;
    top: 1rem;
    left: -2rem;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 2.5rem;
    transform: rotate(-45deg);
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 1;
}

.completed-stamp i {
    font-size: 1rem;
}

.task-card.completed .task-header {
    opacity: 0.8;
}

.task-card.completed .task-content {
    color: var(--gray-color);
    text-decoration: line-through;
    text-decoration-color: var(--success-color);
    text-decoration-thickness: 2px;
}

.task-content {
    color: var(--dark-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    direction: rtl;
    text-align: right;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.task-content p {
    margin: 0.5rem 0;
}

.task-content p:first-child {
    margin-top: 0;
}

.task-content p:last-child {
    margin-bottom: 0;
}

/* Remove scrollbar styles */
.task-content::-webkit-scrollbar {
    display: none;
}

.task-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: visible;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    direction: rtl;
}

.task-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-color);
    font-size: 0.9375rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    direction: ltr;
}

.task-priority {
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.task-priority::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.task-priority.priority-A {
    background: var(--danger-light);
    color: var(--danger-color);
}

.task-priority.priority-A::before {
    background: var(--danger-color);
}

.task-priority.priority-B {
    background: var(--primary-light);
    color: var(--primary-color);
}

.task-priority.priority-B::before {
    background: var(--primary-color);
}

.task-priority.priority-C {
    background: var(--gray-light);
    color: var(--gray-color);
}

.task-priority.priority-C::before {
    background: var(--gray-color);
}

.task-actions {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-start;
    direction: rtl;
}

.task-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--gray-light);
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.task-btn.completed {
    background-color: var(--success-color);
    color: white;
    opacity: 1;
}

.task-btn.completed:hover {
    background-color: var(--success-color);
    opacity: 0.9;
}

.task-btn.completed i {
    color: white;
    opacity: 1;
}

/* تىزىملىك رامكىسىنىڭ پاددىڭىنى تەڭشەش */
.task-list {
    padding-bottom: 36px;
} 