* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.hidden {
    display: none !important;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}
.fade-in-only {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}
button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
.app {
    display: flex;
    height: 100vh;
    height: 100dvh;
}
/* Sidebar */
.sidebar {
    width: 200px;
    height: 100%;
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}
.sidebar-header h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    flex-shrink: 0;
}
#auth-section {
    width: 100%;
    display: flex;
    justify-content: center;
}
#auth-buttons {
    width: calc(100% - 20px);
}
.auth-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}
.auth-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
#user-info {
    width: calc(100% - 20px);
    text-align: center;
}
#user-info .auth-btn-small {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
}
#user-email {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 8px;
    word-break: break-all;
    text-align: center;
}
.auth-btn-small {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}
.auth-btn-small:hover {
    background: rgba(255, 68, 68, 0.2);
}
.sidebar-footer-buttons {
    display: flex;
    gap: 10px;
    padding: 0 10px;
    margin-bottom: 10px;
}
.footer-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.footer-btn:hover {
    border-color: #888;
    color: #fff;
}
.about-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 6px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    width: calc(100% - 20px);
    margin: 0 auto 10px auto;
    display: block;
}
.about-btn:hover {
    border-color: #888;
    color: #fff;
}
.about-modal-content {
    max-width: 520px;
}
.about-body {
    padding: 20px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}
.about-description {
    color: #fff;
    font-size: 15px;
    line-height: 1.7;
}
.about-features {
    margin-left: 20px;
    margin-top: 5px;
}
.about-features li {
    margin-bottom: 8px;
}
.about-features li strong {
    color: #44aaff;
}
.about-screenshot {
    margin-top: 15px;
    text-align: center;
}
.about-screenshot img {
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
}
.about-screenshot-caption {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}
.about-sync {
    color: #888;
    font-size: 13px;
    text-align: center;
}
.about-version {
    color: #666;
    font-size: 12px;
    text-align: center;
}
.settings-modal-content {
    max-width: 400px;
}
.settings-body {
    padding: 20px;
}
.settings-section h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 15px 0;
    font-weight: 500;
}
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 14px;
}
.setting-item:last-child {
    border-bottom: none;
}
.theme-setting {
    gap: 10px;
}
.language-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
}
.language-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    border: none;
}
.language-label {
    color: #ccc;
    font-size: 14px;
}
.theme-label-dark,
.theme-label-light {
    font-size: 13px;
    color: #888;
}
.theme-label-light {
    color: #ccc;
}
.theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 24px;
    transition: 0.3s;
}
.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
input:checked + .theme-slider {
    background-color: #fff;
    border-color: #fff;
}
input:checked + .theme-slider:before {
    transform: translateX(20px);
    background-color: #000;
}
.language-select {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    min-width: 150px;
}
.language-select:focus {
    outline: none;
    border-color: #44aaff;
}
.loading-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.loading-text {
    color: #fff;
    font-size: 18px;
}
.cancel-loading-btn {
    background: transparent;
    border: 1px solid #666;
    color: #888;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.cancel-loading-btn:hover {
    border-color: #888;
    color: #fff;
}
.auth-modal-content {
    max-width: 340px;
    border-radius: 20px;
}
.password-reset-modal-content {
    max-width: 380px;
}
.auth-modal-header {
    position: relative;
}
.auth-modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin: 0;
}
.auth-modal-header .close-btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}
.auth-error {
    color: #ff4444;
    font-size: 12px;
    text-align: center;
    margin: 10px 0;
}
.auth-success {
    color: #44ffaa;
    font-size: 12px;
    text-align: center;
    margin: 10px 0;
}
.forgot-password-link {
    display: block;
    text-align: center;
    color: #44aaff;
    font-size: 12px;
    text-decoration: none;
    margin: 10px 0;
}
.forgot-password-link:hover {
    text-decoration: underline;
}
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrapper input {
    padding-right: 40px;
}
.toggle-password-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}
.toggle-password-btn:hover {
    color: #fff;
}
.auth-buttons-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.auth-buttons-row .save-btn {
    flex: 1;
}
.auth-buttons-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
}
.auth-buttons-column .save-btn {
    width: 100%;
    padding: 10px;
    justify-content: center;
}
.auth-buttons-column .signin-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
}
.auth-buttons-column .signin-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff !important;
    color: #fff !important;
}
#auth-modal .modal-footer {
    padding: 0 20px 20px;
}
.auth-icon-wrapper {
    display: flex;
    justify-content: center;
    margin: 5px 0 0;
}
.auth-icon-wrapper svg {
    color: #44aaff;
    opacity: 0.8;
}
.auth-description {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin: 0 0 15px;
    line-height: 1.5;
}
#password-reset-form {
    padding: 0 0 10px;
}
#forgot-password-container,
#auth-form-container {
    padding: 0 0 10px;
}
.back-btn {
    background: transparent;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.back-to-auth-btn {
    background: transparent;
    color: #888;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.back-to-auth-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
}
.nav-btn {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}
.nav-btn[data-page="calendar"].has-today-items::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
}
.nav-btn:hover {
    background: #333;
    border-color: #666;
}
.nav-btn.active {
    background: #333;
    border-color: #666;
}
/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.content-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
}
/* Pages */
.page {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.page.active {
    display: block;
    opacity: 1;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.page-header h2 {
    font-size: 24px;
    font-weight: 600;
}
/* Back Button */
.back-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
}
.back-btn:hover {
    color: #aaa;
}
/* Add Button */
.add-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.add-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.task-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
}
/* Completed task styling for main page as well as project lists */
.task-card.completed {
    opacity: 0.5;
}
.task-card.completed .task-name {
    text-decoration: line-through;
}
.task-card.completed .task-priority {
    background: #666;
}
/* Completed tasks in project task list (visual indication only) */
#projects-content .task-card.completed {
    background: #1a1a1a;
    border-color: #333;
    opacity: 0.6;
}
#projects-content .task-card.completed .task-name {
    color: #888;
    text-decoration: line-through;
}
#projects-content .task-card.completed .task-priority {
    background: #444;
    color: #888;
}
#projects-content .task-card.completed .task-description {
    color: #666;
}
/* new label style for completed tag (if used) */
.completed-label { color: #888 !important; font-weight: 600; font-size: 11px; margin-left: 8px; padding: 2px 8px; border: 1px solid #555; border-radius: 4px; text-decoration: none !important; display: inline-block; }
.task-card:hover {
    border-color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.task-name {
    font-weight: 600;
    font-size: 16px;
}
.task-priority {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.priority-high {
    background: #444;
    color: #ff6b6b;
}
.priority-medium {
    background: #555;
    color: #ffb74d;
}
.priority-low {
    background: #555;
    color: #4fc3f7;
}
.task-description {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.task-focus-time {
    font-size: 12px;
    color: #aaa;
}
.task-actions {
    display: flex;
    gap: 10px;
}
.task-btn {
    background: transparent;
    border: 1px solid #666;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.task-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}
.delete-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
}
.delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
/* Delete Project Button */
.delete-project-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.delete-project-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff6666;
}
.delete-project-btn:active {
    background: rgba(255, 68, 68, 0.4);
}
/* Recently Completed Panel */
.completed-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background: #1a1a1a;
    border-left: 1px solid #333;
    padding: 20px;
    flex-direction: column;
    overflow-y: auto;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.completed-panel.visible {
    transform: translateX(0);
}
.panel-header {
    margin-bottom: 15px;
}
.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}
.completed-tasks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
}
.completed-task {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.completed-task:hover {
    border-color: #666;
}
/* Projects Content (for both project list and project task list) */
#projects-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: opacity 0.3s ease;
}
.project-view-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    padding: 10px 0 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
}
body.light-mode .project-view-title {
    color: #000;
    border-bottom-color: #ddd;
}
.project-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.project-card:hover {
    border-color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.project-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
}
.project-name {
    font-weight: 600;
    font-size: 18px;
}
.project-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: #ccc;
}
.project-stats .task-count {
    font-weight: 500;
}
.project-progress {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.project-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #44aaff, #44ffaa);
    width: 0%;
    transition: width 0.3s ease;
}
/* Project Actions Container */
.project-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
/* Modals */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}
.focus-timer-content {
    max-width: 400px;
}
.task-completed-content {
    max-width: 400px;
    text-align: center;
}
.note-modal-content {
    width: 80vw;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}
.note-modal-content .form-group {
    flex: 0 0 auto;
    margin-bottom: 10px;
    padding: 0 20px;
}
.note-modal-content .form-group:first-of-type {
    padding-top: 10px;
}
.note-modal-content .form-group.note-editor-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 45vh;
    padding-bottom: 0;
}
.note-editor-group .note-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    flex-wrap: wrap;
}
.note-toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s;
}
.note-toolbar-btn:hover {
    background: #3a3a3a;
    border-color: #555;
}
.note-toolbar-btn.active {
    background: #44aaff;
    color: #fff;
    border-color: #44aaff;
}
.note-toolbar-separator {
    width: 1px;
    height: 20px;
    background: #444;
    margin: 0 4px;
}
.note-toolbar-select {
    background: #333;
    border: 1px solid #444;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.note-toolbar-select:focus {
    outline: none;
    border-color: #44aaff;
}
.note-editor {
    flex: 1;
    min-height: 200px;
    max-height: 50vh;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 0 0 6px 6px;
    color: #fff;
    font-size: 14px;
    padding: 12px;
    overflow-y: auto;
    line-height: 1.6;
    outline: none;
}
.note-editor:empty::before {
    content: attr(data-placeholder);
    color: #666;
    pointer-events: none;
}
.note-editor h1 { font-size: 24px; font-weight: 700; margin: 0.5em 0; }
.note-editor h2 { font-size: 20px; font-weight: 600; margin: 0.5em 0; }
.note-editor h3 { font-size: 17px; font-weight: 600; margin: 0.5em 0; }
.note-editor p { margin: 0.3em 0; }
.note-editor ul, .note-editor ol { padding-left: 1.5em; margin: 0.3em 0; }
.note-editor-group .char-count {
    text-align: right;
    margin-top: 4px;
    font-size: 11px;
}
.note-modal-content .modal-footer {
    flex: 0 0 auto;
    padding: 15px 20px 20px 20px;
    margin-top: auto;
}
.event-detail-content {
    max-width: 400px;
}
.event-detail-body {
    padding: 20px;
}
.event-detail-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.event-detail-date {
    font-size: 15px;
    color: #888;
    margin-bottom: 8px;
}
.event-detail-time {
    font-size: 15px;
    color: #44aaff;
    font-weight: 600;
}
body.light-mode .event-detail-name {
    color: #000;
}
body.light-mode .event-detail-date {
    color: #666;
}
body.light-mode .event-detail-time {
    color: #2196f3;
}
.task-completed-body {
    padding: 30px 20px 10px 20px;
    color: #fff;
}
.task-completed-body p {
    margin-bottom: 15px;
}
#completed-task-name {
    font-size: 20px;
    font-weight: 600;
    color: #44aaff;
    margin-bottom: 10px;
}
.stop-alarm-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.stop-alarm-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.modal-body {
    padding: 15px 20px;
}
#delete-confirm-modal .modal-body,
#delete-project-confirm-modal .modal-body,
#delete-note-confirm-modal .modal-body {
    padding: 15px 20px;
}
#delete-confirm-modal .modal-footer,
#delete-project-confirm-modal .modal-footer,
#delete-note-confirm-modal .modal-footer {
    padding: 15px 20px 20px 20px;
}
#delete-confirm-modal .modal-content,
#delete-project-confirm-modal .modal-content,
#delete-note-confirm-modal .modal-content {
    max-width: 400px;
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}
.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}
.close-btn:hover {
    color: #aaa;
}
.form-group {
    margin-bottom: 15px;
    padding: 0 15px;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    padding: 0;
}
.form-row .form-group label {
    justify-content: center;
    text-align: center;
}
.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
}
.char-count {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
    resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}
body.light-mode .note-modal-content textarea {
    background: #fff;
    border-color: #ccc;
    color: #000;
}
body.light-mode .note-editor-group .note-toolbar {
    background: #f5f5f5;
    border-color: #ccc;
}
body.light-mode .note-toolbar-btn {
    color: #333;
}
body.light-mode .note-toolbar-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}
body.light-mode .note-toolbar-btn.active {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}
body.light-mode .note-toolbar-separator {
    background: #ccc;
}
body.light-mode .note-toolbar-select {
    background: #fff;
    border-color: #ccc;
    color: #333;
}
body.light-mode .note-toolbar-select:focus {
    border-color: #2196f3;
}
body.light-mode .note-editor {
    background: #fff;
    border-color: #ccc;
    color: #000;
}
body.light-mode .note-editor:empty::before {
    color: #999;
}
/* Priority selection buttons */
.priority-buttons {
    display: flex;
    gap: 10px;
}
.priority-btn {
    flex: 1;
    padding: 10px;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
.priority-btn:hover {
    background: #444;
    border-color: #666;
}
.priority-btn.active {
    background: #444;
    border-color: #fff;
}
.color-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}
.color-btn {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.color-btn:hover {
    transform: scale(1.05);
}
.color-btn.active {
    border-color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.repeat-select-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
}
.repeat-select-btn:hover {
    border-color: #666;
}
body.light-mode .repeat-select-btn {
    background: #fff;
    border-color: #ccc;
    color: #333;
}
body.light-mode .repeat-select-btn:hover {
    border-color: #aaa;
}
/* Time Picker */
.time-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}
.time-picker-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.time-picker-btn {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    width: 40px;
    height: 22px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
    line-height: 1;
}
.time-picker-btn:hover {
    background: #333;
    border-color: #666;
}
.time-picker-btn:active {
    background: #44aaff;
    border-color: #44aaff;
    color: #fff;
}
.time-picker-input {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 0;
    width: 41px !important;
    text-align: center;
    font-variant-numeric: tabular-nums;
    outline: none;
    -moz-appearance: textfield;
}
.time-picker-input::-webkit-outer-spin-button,
.time-picker-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.time-picker-input:focus {
    border-color: #44aaff;
    box-shadow: 0 0 0 2px rgba(68, 170, 255, 0.2);
}
.time-picker-separator {
    font-size: 20px;
    font-weight: 600;
    color: #888;
    margin-top: 2px;
}
body.light-mode .time-picker-btn {
    border-color: #ccc;
    color: #333;
}
body.light-mode .time-picker-btn:hover {
    background: #f0f0f0;
    border-color: #aaa;
}
body.light-mode .time-picker-btn:active {
    background: #2196f3;
    border-color: #2196f3;
    color: #fff;
}
body.light-mode .time-picker-input {
    background: #f5f5f5;
    border-color: #ccc;
    color: #000;
}
body.light-mode .time-picker-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}
body.light-mode .time-picker-separator {
    color: #666;
}
.repeat-select-arrow {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}
.repeat-days-modal-content {
    max-width: 320px;
}
.repeat-days-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 20px;
}
.repeat-day-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
}
.repeat-day-option:hover {
    background: #444;
    border-color: #666;
}
.repeat-day-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}
.repeat-day-option span {
    line-height: 1;
}
.priority-high {
    color: #ff4444;
}
.priority-medium {
    color: #ffaa44;
}
.priority-low {
    color: #44aaff;
}
/* Timer Display */
.timer-display {
    text-align: center;
    padding: 30px 20px;
}
#time-display {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #fff;
}
#progress-container {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}
#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #44aaff, #44ffaa);
    width: 0%;
    transition: width 1s linear;
}
#progress-bar.no-transition {
    transition: none !important;
}
.timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}
.cancel-timer-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.cancel-timer-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
.complete-timer-btn {
    background: transparent;
    border: 1px solid #44ff88;
    color: #44ff88;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.complete-timer-btn:hover {
    background: rgba(68, 255, 136, 0.2);
}
/* Delete Confirmation Modal Styles */
.confirm-delete-btn,
.cancel-delete-btn {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.confirm-delete-btn {
    background: transparent;
    border: 1px solid #f44336;
    color: #f44336;
}
.confirm-delete-btn:hover {
    background: rgba(244, 67, 54, 0.2);
}
.cancel-delete-btn {
    background: transparent;
    border: 1px solid #666;
    color: #888;
}
.cancel-delete-btn:hover {
    background: #555;
}
.cancel-delete-btn:active {
    background: #444;
}
/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 15px;
    padding: 15px 25px 35px 25px;
    justify-content: flex-end;
}
#task-completed-modal .modal-footer {
    justify-content: center;
}
.save-btn,
.cancel-btn {
    padding: 10px 20px;
    border: 1px solid #666;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.save-btn {
    border-color: #4caf50;
    color: #4caf50;
}
.save-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #66bb6a;
    color: #66bb6a;
}
.save-btn:active {
    background: rgba(76, 175, 80, 0.2);
}
.cancel-btn {
    border-color: #f44336;
    color: #f44336;
}
.cancel-btn:hover {
    background: rgba(244, 67, 54, 0.1);
    border-color: #ef5350;
    color: #ef5350;
}
.cancel-btn:active {
    background: rgba(244, 67, 54, 0.2);
}
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #666;
}
body.light-mode ::-webkit-scrollbar-track {
    background: #f0f0f0;
}
body.light-mode ::-webkit-scrollbar-thumb {
    background: #ccc;
}
body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
/* ========================================
   FOCUS & POMODORO PAGE
   ======================================== */
#focus-pomodoro-page {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}
#focus-pomodoro-page.active {
    display: flex;
}
.timer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    position: relative;
}
.timer-tab-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.timer-tab-btn:hover {
    border-color: #888;
    color: #fff;
}
.timer-tab-btn.active {
    background: #333;
    border-color: #44aaff;
    color: #44aaff;
}
.focus-timer-section,
.pomodoro-timer-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.focus-timer-section.active,
.pomodoro-timer-section.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    position: relative;
}
.timer-section-hidden {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}
.timer-section-visible {
    opacity: 1;
    visibility: visible;
    position: relative;
}
.standalone-timer-container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.standalone-timer-container h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
}
/* Timer Input Section (up/down controls) */
.timer-input-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 10px;
}
.digit-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.digit-btn {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    width: 50px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.digit-btn:hover {
    background: #333;
    border-color: #888;
}
.digit-btn:active {
    background: #444;
}
.digit-display {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    min-width: 70px;
    text-align: center;
    font-family: inherit;
    line-height: 1;
    position: relative;
    top: -2px;
}
.digit-separator {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 5px;
    line-height: 1;
    display: flex;
    align-items: center;
    position: relative;
    top: -14px;
}
.digit-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Start Timer Button */
.start-focus-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
    margin-bottom: 30px;
}
.start-focus-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
/* Active Timer Section */
.active-timer-section {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}
.active-timer-display {
    font-size: 96px;
    font-weight: 700;
    color: #fff;
    font-family: inherit;
    margin-bottom: 30px;
    letter-spacing: 4px;
    line-height: 1;
}
.focus-progress-container {
    width: 100%;
    max-width: 500px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 30px auto;
}
#focus-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #44aaff, #44ffaa);
    width: 0%;
    transition: width 0.5s ease;
}
.cancel-focus-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.cancel-focus-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
/* Timer Completed Section */
.timer-completed-section {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}
.timer-completed-section p,
.times-up-text {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}
.stop-focus-alarm-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.stop-focus-alarm-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
/* ===== POMODORO PAGE STYLES ===== */
.pomodoro-layout {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 60px;
}
.pomodoro-settings-panel {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    min-width: 200px;
}
.pomodoro-settings-panel h3 {
    font-size: 16px;
    font-weight: 600;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pomodoro-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.pomodoro-setting-row:last-child {
    margin-bottom: 0;
}
.pomodoro-setting-label {
    font-size: 14px;
    color: #aaa;
    margin-right: 15px;
}
.pomodoro-setting-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pomodoro-setting-btn {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pomodoro-setting-btn:hover {
    background: #333;
    border-color: #888;
}
.pomodoro-setting-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    min-width: 35px;
    text-align: center;
}
.pomodoro-main-area {
    text-align: center;
    min-width: 350px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
}
.pomodoro-main-area h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}
.pomodoro-stage-label {
    font-size: 28px;
    font-weight: 600;
    color: #44aaff;
    margin-bottom: 5px;
}
.pomodoro-cycle-count {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}
.pomodoro-timer-section {
    text-align: center;
    margin-top: -10px;
}
.pomodoro-timer-display {
    font-size: 100px;
    font-weight: 700;
    color: #fff;
    font-family: inherit;
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1;
}
.pomodoro-progress-container {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 15px auto;
}
#pomodoro-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #44aaff, #44ffaa);
    width: 0%;
    transition: width 1s linear;
}
#pomodoro-progress-bar.no-transition {
    transition: none !important;
}
.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.pomodoro-btn {
    padding: 12px 35px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.pomodoro-start-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
}
.pomodoro-start-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
.pomodoro-start-btn.paused {
    background: transparent;
    border: 1px solid #44ffaa;
    color: #44ffaa;
}
.pomodoro-reset-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
}
.pomodoro-reset-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
.pomodoro-start-next-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
}
.pomodoro-start-next-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
.pomodoro-cancel-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
}
.pomodoro-cancel-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
/* ===== NOTES PAGE STYLES ===== */
.notes-list {
    display: flex;
    flex-direction: column;
}
.notes-list.has-notes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.note-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.note-card:hover {
    border-color: #555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.note-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    word-break: break-word;
}
.note-preview {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.note-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}
.note-btn {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}
.note-edit-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
}
.note-edit-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
.note-delete-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
}
.note-delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
#notes-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
/* ===== CHECKLISTS PAGE STYLES ===== */
.checklists-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.checklist-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}
.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
}
.checklist-header:hover {
    background: #222;
}
.checklist-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.checklist-count {
    font-size: 14px;
    color: #888;
    margin-left: 10px;
}
.checklist-toggle {
    color: #888;
    font-size: 12px;
    transition: transform 0.2s;
}
.checklist-toggle.expanded {
    transform: rotate(180deg);
}
.checklist-actions {
    display: flex;
    gap: 10px;
}
.checklist-item-btn {
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.checklist-edit-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
}
.checklist-edit-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
.checklist-delete-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
}
.checklist-delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
.checklist-items {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    border-top: 1px solid transparent;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}
.checklist-items.expanded {
    max-height: 1000px;
    padding: 15px 20px;
    opacity: 1;
    border-top-color: #333;
}
.checklist-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}
.checklist-item:last-child {
    border-bottom: none;
}
.checklist-item-checkbox {
    display: none;
}
.checklist-checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.checklist-item.checked .checklist-checkbox-box {
    background: #fff;
}
.checklist-item.checked .checklist-checkbox-box::after {
    content: '✓';
    color: #000;
    font-size: 12px;
    font-weight: bold;
}
.checklist-item-name {
    font-size: 14px;
    color: #ccc;
    flex: 1;
}
.checklist-item.checked .checklist-item-name {
    text-decoration: line-through;
    color: #666;
}
.checklist-items-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.checklist-item-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.checklist-item-input-group input {
    flex: 1;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.checklist-item-input-group input:focus {
    outline: none;
    border-color: #44aaff;
}
.remove-item-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.remove-item-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
.add-checklist-item-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    margin-top: 10px;
}
.add-checklist-item-btn:hover {
    border-color: #888;
    color: #fff;
}
#checklists-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
/* ========================================
   ANALYTICS PAGE
   ======================================== */
#analytics-page {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
}
#analytics-page.active {
    display: flex;
}
.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Tasks Tabs (replaces page title) */
.tasks-tabs {
    display: flex;
    gap: 8px;
}
.tasks-tab-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.tasks-tab-btn:hover {
    border-color: #888;
    color: #fff;
}
.tasks-tab-btn.active {
    background: #333;
    border-color: #44aaff;
    color: #44aaff;
}
.analytics-view-selector {
    display: flex;
    gap: 10px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #333;
    flex-shrink: 0;
}
.analytics-view-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.analytics-view-btn:hover {
    border-color: #888;
    color: #fff;
}
.analytics-view-btn.active {
    background: #333;
    border-color: #44aaff;
    color: #44aaff;
}
.analytics-date-selector {
    display: flex;
    gap: 10px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #333;
    flex-shrink: 0;
}
.analytics-date-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.analytics-date-btn:hover {
    border-color: #888;
    color: #fff;
}
.analytics-date-btn.active {
    background: #333;
    border-color: #44aaff;
    color: #44aaff;
}
.analytics-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex-shrink: 0;
    margin-bottom: 20px;
}
.analytics-summary-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    padding-bottom: 18px;
    text-align: center;
}
.analytics-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}
.analytics-summary-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.analytics-chart-container {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    flex-shrink: 0;
    margin-bottom: 20px;
}
.analytics-chart-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 40px;
}
.analytics-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 180px;
    gap: 8px;
    min-width: 100%;
}
.analytics-bar-wrapper {
    flex: 0 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}
.analytics-bar-time {
    font-size: 9px;
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 200;
}
.analytics-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, #44aaff, #44ffaa);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    position: absolute;
    bottom: 25px;
}
.analytics-bar-label {
    font-size: 10px;
    color: #888;
    text-align: center;
    margin-top: auto;
    white-space: nowrap;
}
.analytics-tasks-list {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.analytics-tasks-list h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}
.analytics-tasks-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}
.analytics-task-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    align-items: center;
    font-size: 14px;
}
.analytics-task-item:last-child {
    border-bottom: none;
}
.analytics-task-item.header {
    color: #888;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #444;
}
.analytics-task-name {
    color: #fff;
    font-weight: 500;
}
.analytics-task-project {
    color: #ffffff;
    font-size: 13px;
}
.analytics-task-focus {
    color: #44aaff;
    font-weight: 500;
}
.analytics-task-date {
    color: #888;
    font-size: 13px;
}
.analytics-empty {
    color: #666;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}
.analytics-empty-chart {
    color: #666;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}
.analytics-projects-list {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
}
.analytics-projects-list h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}
.analytics-project-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #333;
    align-items: center;
}
.analytics-project-item:last-child {
    border-bottom: none;
}
.analytics-project-item.header {
    color: #888;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #444;
    padding: 10px 15px;
}
.analytics-project-name {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}
.analytics-project-time {
    color: #44aaff;
    font-weight: 500;
    font-size: 14px;
}
.analytics-project-tasks {
    color: #ffffff;
    font-size: 14px;
}
.analytics-project-empty {
    color: #666;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}
body.light-mode .analytics-date-selector {
    background: #fff;
    border-color: #ddd;
}
body.light-mode .analytics-date-btn {
    border-color: #ccc;
    color: #666;
}
body.light-mode .analytics-date-btn:hover {
    border-color: #888;
    color: #333;
}
body.light-mode .analytics-date-btn.active {
    background: #f0f0f0;
    border-color: #44aaff;
    color: #44aaff;
}
body.light-mode .analytics-view-selector {
    background: #fff;
    border-color: #ddd;
}
body.light-mode .analytics-view-btn {
    border-color: #ccc;
    color: #666;
}
body.light-mode .analytics-view-btn:hover {
    border-color: #888;
    color: #333;
}
body.light-mode .analytics-view-btn.active {
    background: #f0f0f0;
    border-color: #44aaff;
    color: #44aaff;
}
body.light-mode .tasks-tab-btn {
    border-color: #ccc;
    color: #666;
}
body.light-mode .tasks-tab-btn:hover {
    border-color: #aaa;
    color: #333;
}
body.light-mode .tasks-tab-btn.active {
    background: #f0f0f0;
    border-color: #2196f3;
    color: #2196f3;
}
body.light-mode .info-view-btn {
    border-color: #ccc;
    color: #666;
}
body.light-mode .info-view-btn:hover {
    border-color: #aaa;
    color: #333;
}
body.light-mode .info-view-btn.active {
    background: #f0f0f0;
    border-color: #2196f3;
    color: #2196f3;
}
body.light-mode .analytics-summary-card {
    background: #fff;
    border-color: #ddd;
}
body.light-mode .analytics-summary-value {
    color: #2196f3;
}
body.light-mode .analytics-chart-container {
    background: #fff;
    border-color: #ddd;
}
body.light-mode .analytics-bar-tooltip {
    background: #333;
    color: #fff;
}
body.light-mode .analytics-bar-time {
    color: #000000;
}
body.light-mode .analytics-tasks-list {
    background: #fff;
    border-color: #ddd;
}
body.light-mode .analytics-tasks-list h3 {
    color: #333;
}
body.light-mode .analytics-task-item {
    border-bottom-color: #eee;
}
body.light-mode .analytics-task-item.header {
    color: #666;
    border-bottom-color: #ddd;
}
body.light-mode .analytics-task-name {
    color: #333;
}
body.light-mode .analytics-task-project {
    color: #000000;
}
body.light-mode .analytics-task-focus {
    color: #44aaff;
}
body.light-mode .analytics-task-date {
    color: #888;
}
body.light-mode .analytics-empty {
    color: #999;
}
body.light-mode .analytics-empty-chart {
    color: #999;
}
body.light-mode .analytics-projects-list {
    background: #fff;
    border-color: #ddd;
}
body.light-mode .analytics-projects-list h3 {
    color: #333;
}
body.light-mode .analytics-project-item {
    border-bottom-color: #eee;
}
body.light-mode .analytics-project-item.header {
    color: #666;
    border-bottom-color: #ddd;
}
body.light-mode .analytics-project-name {
    color: #333;
}
body.light-mode .analytics-project-time {
    color: #44aaff;
}
body.light-mode .analytics-project-tasks {
    color: #000000;
}
body.light-mode .analytics-project-empty {
    color: #999;
}
/* ========================================
   CALENDAR PAGE
   ======================================== */
#calendar-page {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    overflow: hidden;
}
#calendar-page.active {
    display: flex;
}
/* Calendar compact view (in day page) */
.calendar-compact {
    display: flex;
    gap: 8px;
    padding: 10px 5px;
    overflow-x: auto;
    border-bottom: 1px solid #333;
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}
.calendar-compact::-webkit-scrollbar {
    height: 6px;
}
.calendar-compact::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.calendar-compact::-webkit-scrollbar-thumb {
    background: #444;
}
body.light-mode .calendar-compact {
    scrollbar-color: #ccc #f0f0f0;
}
body.light-mode .calendar-compact::-webkit-scrollbar-track {
    background: #f0f0f0;
}
body.light-mode .calendar-compact::-webkit-scrollbar-thumb {
    background: #ccc;
}
.calendar-compact-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #888;
}
.calendar-compact-day:hover {
    background: #333;
    border-color: #555;
}
.calendar-compact-day.active {
    background: #44aaff;
    border-color: #44aaff;
    color: #000 !important;
}
.calendar-compact-day.active.today {
    background: #44aaff;
    border-color: #44aaff;
    color: #000 !important;
}
.calendar-compact-day.active.today .day-name,
.calendar-compact-day.active.today .day-number {
    color: #000 !important;
}
.calendar-compact-day.today {
    border-color: #44aaff;
}
.calendar-compact-day.today .day-name,
.calendar-compact-day.today .day-number {
    color: #44aaff;
}
.calendar-compact-day .day-name {
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.calendar-compact-day .day-number {
    font-size: 16px;
    font-weight: 600;
}
.calendar-compact-day.has-events::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #44aaff;
    border-radius: 50%;
    margin-top: 4px;
}
.calendar-compact-day.active.has-events::after {
    background: #000;
}
/* Calendar month view */
#calendar-month-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    min-height: 38px;
}
.calendar-month-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.calendar-nav-btns {
    display: flex;
    gap: 10px;
    min-width: 120px;
    justify-content: flex-end;
}
.calendar-nav-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.calendar-nav-btn:hover {
    background: #333;
    border-color: #888;
    color: #fff;
}
.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.calendar-body {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 15px;
    overflow: hidden;
    align-items: stretch;
}
.calendar-views-wrapper {
    flex: 1;
    height: 100%;
    min-width: 0;
    position: relative;
}
.calendar-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, 1fr);
    gap: 4px;
    position: absolute;
    inset: 0;
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}
.calendar-grid.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
    z-index: -1;
}
.calendar-week-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    inset: 0;
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}
.calendar-week-view.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
    z-index: -1;
}
.calendar-info-panel {
    width: 250px;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    gap: 8px;
    overflow: hidden;
}
/* Narrow screens - stacked layout with info panel below */
@media (max-width: 1000px) {
    .calendar-body {
        flex-direction: column;
    }
    .calendar-grid {
        flex: 3;
        height: auto;
        min-height: 0;
    }
    .calendar-week-view {
        flex: 3;
        height: auto;
        min-height: 0;
    }
    .calendar-info-panel {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 10px;
        gap: 10px;
        min-height: 0;
    }
    .info-date,
    .info-time,
    .info-event-name,
    .info-event-time {
        margin: 0;
    }
    .info-event-label {
        display: none;
    }
    .info-view-buttons {
        width: 100%;
        justify-content: center;
    }
}
.calendar-weekday-header {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 4px;
    text-transform: uppercase;
}
.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}
.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}
.calendar-day.other-month {
    opacity: 0.3;
    border-color: #555;
}
.calendar-day.other-month:hover {
    background: rgba(255, 255, 255, 0.05);
}
.calendar-day.today {
    border-color: #44aaff;
}
.calendar-day.today .day-number {
    color: #44aaff;
}
.calendar-day .day-number {
    font-size: clamp(14px, 2vw, 22px);
    font-weight: 600;
    line-height: 1;
}
.calendar-day .day-counts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}
.calendar-day .day-events-count,
.calendar-day .day-tasks-count {
    font-size: clamp(8px, 1vw, 11px);
    color: #ccc;
}
.calendar-day.active .day-events-count,
.calendar-day.active .day-tasks-count {
    color: #000;
}
.calendar-day .has-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #44aaff;
    border-radius: 50%;
    display: none;
}
.info-date {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    color: #fff;
}
.info-time {
    font-size: clamp(12px, 1.5vw, 16px);
    color: #888;
}
.info-event-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin-top: 8px;
}
.info-event-name {
    font-size: clamp(13px, 1.5vw, 16px);
    color: #44aaff;
}
.info-event-time {
    font-size: 12px;
    color: #666;
}
.info-view-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.info-view-btn {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #555;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.info-view-btn:hover {
    border-color: #888;
    color: #fff;
}
.info-view-btn.active {
    background: #333;
    border-color: #44aaff;
    color: #44aaff;
}
/* Wide screens - stacked vertical buttons */
@media (min-width: 1001px) {
    .info-view-buttons {
        flex-direction: column;
        width: 100%;
    }
    .info-view-btn {
        width: 100%;
    }
}
.calendar-week-view {
    flex: 1;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.25s ease;
}
.calendar-week-view.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}
.calendar-week-header {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid #333;
    padding-left: 45px;
    scrollbar-gutter: stable;
}
.calendar-week-day-header {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #666;
    padding: 6px 2px;
    text-transform: uppercase;
    border-right: 1px solid #222;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid #333;
    border-left: none;
    cursor: pointer;
    font-family: inherit;
}
.calendar-week-day-header:hover {
    background: #333;
    color: #fff;
}
.calendar-week-day-header:last-child {
    border-right: none;
}
.calendar-week-day-header:hover:last-child {
    border-right: none;
}
.calendar-week-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
}
.calendar-week-day-column {
    flex: 1;
    position: relative;
    border-right: 1px solid #222;
    min-height: 960px;
}
.calendar-week-day-column:last-child {
    border-right: none;
}
.calendar-week-time-labels {
    width: 45px;
    flex-shrink: 0;
    border-right: 1px solid #333;
    min-height: 960px;
}
.calendar-week-time-label {
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 9px;
    color: #666;
    padding-top: 0;
    position: relative;
    top: 0;
}
.calendar-week-hour-slot {
    height: 40px;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
}
.calendar-week-event {
    position: absolute;
    left: 2px;
    right: 2px;
    background: #44aaff;
    border-radius: 3px;
    padding: 1px 3px;
    font-size: 9px;
    color: #000;
    overflow: hidden;
    z-index: 10;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.calendar-week-event-name {
    font-weight: 600;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-week-event-time {
    font-size: 8px;
    opacity: 0.8;
}
.calendar-week-current-time {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    z-index: 20;
    pointer-events: none;
}
.calendar-week-current-time::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}
/* Mobile - show indicator instead of text */
@media (max-width: 600px) {
    .calendar-day .day-counts {
        display: none;
    }
    .calendar-day.has-events .has-indicator {
        display: block;
    }
    .calendar-day .has-indicator {
        display: none;
    }
}
/* Calendar day page */
.calendar-day-page {
    display: none;
    flex-direction: column;
    height: 100%;
}
.calendar-day-page.active {
    display: flex;
}
.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.calendar-back-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.calendar-back-btn:hover {
    background: #333;
    color: #fff;
}
.calendar-date-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
/* Schedule section */
.schedule-section {
    flex-shrink: 0;
    margin-bottom: 20px;
}
.schedule-header {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.schedule-timeline {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
    -webkit-overflow-scrolling: touch;
    min-height: 70px;
    width: 100%;
    max-width: 1440px;
    position: relative;
}
.schedule-current-time {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff4444;
    z-index: 20;
    pointer-events: none;
}
.schedule-timeline-inner {
    width: 100%;
    min-width: 100%;
    max-width: 1440px;
    height: 70px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    box-sizing: border-box;
}
.schedule-time-slot {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 70px;
    flex: 0 0 60px;
    border-right: 1px solid #444;
    box-sizing: border-box;
    position: relative;
}
/* Desktop - fixed 1440px width */
@media (min-width: 1440px) {
    .schedule-timeline {
        width: 1440px;
        max-width: 1440px;
    }
    .schedule-timeline-inner {
        width: 1440px;
        min-width: 1440px;
        max-width: 1440px;
    }
    .schedule-time-slot {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        flex: 0 0 60px;
    }
}
.schedule-time-label {
    display: block;
    font-size: 10px;
    color: #fff;
    width: 60px;
    text-align: center;
    position: absolute;
    top: 2px;
    left: 0;
}
.schedule-timeline::-webkit-scrollbar {
    height: 6px;
}
.schedule-timeline::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.schedule-timeline::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}
.schedule-timeline::-webkit-scrollbar-thumb:hover {
    background: #666;
}
body.light-mode .schedule-timeline::-webkit-scrollbar-track {
    background: #f0f0f0;
}
body.light-mode .schedule-timeline::-webkit-scrollbar-thumb {
    background: #ccc;
}
body.light-mode .schedule-timeline::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
.schedule-event {
    position: absolute;
    background: #44aaff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #000;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.schedule-time-slot:last-child {
    border-right: none;
}
.schedule-event:hover {
    filter: brightness(1.1);
}
.schedule-event-name {
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}
.schedule-event-time {
    font-size: 9px;
    opacity: 0.8;
    white-space: nowrap;
}
.schedule-event-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    padding: 2px;
    line-height: 1;
}
.schedule-event:hover .schedule-event-delete {
    opacity: 0.7;
}
/* Calendar tasks section */
.calendar-tasks-section {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
}
.calendar-task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
}
.calendar-task-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
}
.calendar-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.calendar-tasks-title {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.calendar-task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.calendar-task-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
}
.calendar-task-card:hover {
    border-color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.calendar-task-card.completed {
    opacity: 0.5 !important;
    background: #111;
}
.calendar-task-card.completed .task-name {
    text-decoration: line-through;
    color: #888;
}
.calendar-task-card.completed .task-priority {
    background: #444;
    color: #888;
}
.calendar-task-card.completed .task-description {
    color: #666;
}
.calendar-task-card .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-task-card .task-name {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}
.calendar-task-card .task-priority {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.calendar-task-card .priority-high {
    background: #444;
    color: #ff6b6b;
}
.calendar-task-card .priority-medium {
    background: #555;
    color: #ffb74d;
}
.calendar-task-card .priority-low {
    background: #555;
    color: #4fc3f7;
}
.calendar-task-card .task-description {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.calendar-task-card .task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.calendar-task-card .task-focus-time {
    font-size: 12px;
    color: #888;
}
.calendar-task-card .task-actions {
    display: flex;
    gap: 10px;
}
.calendar-task-card .task-btn {
    background: transparent;
    border: 1px solid #666;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.calendar-task-card .task-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}
.calendar-task-card .delete-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
}
.calendar-task-card .delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
/* Calendar event modal */
#calendar-event-modal .form-group {
    margin-bottom: 15px;
}
#calendar-event-modal label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
#calendar-event-modal input {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}
#calendar-event-modal input:focus {
    outline: none;
    border-color: #44aaff;
}
/* Calendar task modal - reuse task form styles */
#calendar-task-modal input:focus,
#calendar-task-modal textarea:focus {
    outline: none;
    border-color: #44aaff;
}
/* Light mode calendar */
body.light-mode .calendar-compact-day {
    background: #fff;
    border-color: #ddd;
    color: #333;
}
body.light-mode .calendar-compact-day:hover {
    background: #f0f0f0;
}
body.light-mode .calendar-compact-day.active {
    background: #44aaff;
    border-color: #44aaff;
    color: #fff;
}
body.light-mode .calendar-day {
    background: transparent;
    border-color: #333;
    color: #333;
}
body.light-mode .calendar-day:hover {
    background: rgba(0, 0, 0, 0.05);
}
body.light-mode .calendar-day.other-month {
    opacity: 0.3;
    border-color: #999;
}
body.light-mode .calendar-day.other-month:hover {
    background: rgba(0, 0, 0, 0.02);
}
body.light-mode .calendar-day .day-events-count,
body.light-mode .calendar-day .day-tasks-count {
    color: #666;
}
body.light-mode .calendar-day .has-indicator {
    background: #44aaff;
}
body.light-mode .calendar-day.today {
    border-color: #44aaff;
}
body.light-mode .calendar-day.today .day-number {
    color: #44aaff;
}
body.light-mode .calendar-compact-day.today {
    border-color: #44aaff;
}
body.light-mode .calendar-compact-day.today .day-name,
body.light-mode .calendar-compact-day.today .day-number {
    color: #44aaff;
}
body.light-mode #projects-content .task-card.completed {
    background: #f5f5f5;
    border-color: #ddd;
}
body.light-mode #projects-content .task-card.completed .task-name {
    color: #666;
}
body.light-mode #projects-content .task-card.completed .task-priority {
    background: #ccc;
    color: #666;
}
body.light-mode #projects-content .task-card.completed .task-description {
    color: #888;
}
body.light-mode .calendar-day-title {
    color: #333;
}
body.light-mode .calendar-month-title {
    color: #000;
}
body.light-mode .info-date {
    color: #000;
}
body.light-mode #calendar-event-modal input {
    background: #fff;
    border-color: #ccc;
    color: #000;
}
body.light-mode .repeat-day-option {
    background: #fff;
    border-color: #ccc;
    color: #333;
}
body.light-mode .repeat-day-option:hover {
    background: #f0f0f0;
    border-color: #aaa;
}
body.light-mode .schedule-timeline {
    background: #fff;
    border-color: #ddd;
    scrollbar-color: #ccc #f0f0f0;
}
body.light-mode .schedule-time-slot {
    border-color: #ddd;
}
body.light-mode .schedule-time-label {
    color: #999;
}
body.light-mode .calendar-task-card {
    background: #fff;
    border-color: #ddd;
}
body.light-mode .calendar-task-card .task-name {
    color: #333;
}
body.light-mode .calendar-task-card .task-description {
    color: #666;
}
/* Desktop only - hide on mobile */
.desktop-only {
    display: inline-block;
}
/* Mobile only - show on mobile only */
.mobile-only {
    display: none;
}
/* More features panel */
.more-features-panel {
    position: fixed;
    bottom: 80px;
    right: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px;
    z-index: 201;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.more-features-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 201;
}
.more-features-panel .nav-btn {
    padding: 10px 16px;
    font-size: 13px;
    text-align: left;
}
/* Mobile bottom bar button active animation */
.nav-btn {
    transition: background 0.2s ease, color 0.2s ease;
}
/* Mobile calendar & mobile styles */
@media (max-width: 768px), (max-height: 500px) {
    #calendar-page {
        padding: 10px;
    }
    .calendar-month-title {
        font-size: 16px;
    }
    .calendar-nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .calendar-day {
        min-height: 40px;
    }
    .calendar-day .day-number {
        font-size: 12px;
    }
    .calendar-day .day-events-count {
        font-size: 8px;
    }
    .calendar-day-page {
        display: none;
    }
    .calendar-day-page.active {
        display: flex;
    }
    .schedule-timeline {
        overflow-x: auto;
    }
    .schedule-timeline-inner {
        width: 100%;
        min-width: 100%;
    }
    .schedule-time-slot {
        width: 60px;
        min-width: 60px;
        flex: 0 0 60px;
    }
    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #1a1a1a;
        border-bottom: 1px solid #333;
        padding: 12px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }
    .mobile-top-auth {
        display: flex;
        align-items: center;
    }
    .mobile-auth-btn {
        background: transparent;
        border: 1px solid #555;
        color: #888;
        padding: 6px 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 12px;
        white-space: nowrap;
    }
    .mobile-auth-btn:hover {
        border-color: #888;
        color: #fff;
    }
    body.light-mode .mobile-auth-btn {
        border-color: #ccc;
        color: #555;
    }
    body.light-mode .mobile-auth-btn:hover {
        border-color: #888;
        color: #000;
    }
    .mobile-top-buttons {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }
    .mobile-title {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .mobile-top-icon-btn {
        background: transparent;
        border: 1px solid #555;
        color: #888;
        padding: 6px 10px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 101;
    }
    .mobile-top-icon-btn:hover {
        border-color: #888;
        color: #fff;
    }
    .app {
        flex-direction: column;
        padding-top: 50px;
    }
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        order: 2;
        border-right: none;
        border-top: 1px solid #333;
        padding: 10px 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 150;
    }
    .sidebar-header {
        display: none;
    }
    .sidebar-footer {
        position: fixed;
        bottom: 65px;
        left: 10px;
        right: auto;
        width: auto;
        padding: 0;
        z-index: 99;
        margin: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .main-content {
        flex: 1;
        padding-bottom: 130px;
        order: 1;
    }
    .sidebar-footer #auth-section {
        display: none;
    }
    .sidebar-footer #user-info {
        display: none;
    }
    .sidebar-footer #user-email {
        display: none;
    }
    .sidebar-nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }
    .nav-btn {
        padding: 8px 12px;
        margin: 0 2px;
        font-size: 11px;
        border: none;
        border-radius: 6px;
    }
    .nav-btn.active {
        background: #44aaff;
        color: #000;
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: inline-block !important;
    }
    .more-features-btn {
        padding: 8px 12px;
        margin: 0 2px;
        font-size: 18px;
        border: none;
        border-radius: 6px;
        background: transparent;
        color: #888;
        cursor: pointer;
    }
    .more-features-btn.active {
        background: #44aaff;
        color: #000;
    }
    .more-features-panel {
        right: 10px;
        bottom: 75px;
        z-index: 202;
    }
    .main-content {
        flex: 1;
        padding-bottom: 70px;
        order: 1;
    }
    .completed-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: 40vh;
        max-height: 40vh;
        width: 100%;
        background: #1a1a1a;
        border-top: 1px solid #333;
        border-right: none;
        z-index: 100;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        padding-bottom: env(safe-area-inset-bottom);
        z-index: 200;
    }
    .completed-panel.visible {
        transform: translateY(0);
    }
    .toggle-completed-btn {
        display: block;
        position: fixed;
        bottom: 70px;
        left: 10px;
        z-index: 201;
        padding-bottom: env(safe-area-inset-bottom);
        background: #333;
        border: 1px solid #555;
        color: #fff;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 12px;
        cursor: pointer;
    }
    .sidebar-footer .about-btn {
        display: none;
    }
    .sidebar-footer-buttons {
        display: none;
    }
    body.light-mode .auth-btn {
        background: transparent;
        color: #1976d2;
        border-color: #1976d2;
    }
    body.light-mode .auth-btn:hover {
        background: rgba(25, 118, 210, 0.1);
    }
    body.light-mode .auth-btn-small {
        background: transparent;
        color: #1976d2;
        border-color: #1976d2;
    }
    body.light-mode .auth-btn-small:hover {
        background: rgba(25, 118, 210, 0.1);
    }
    body.light-mode .sidebar-footer .auth-btn {
        background: transparent;
        color: #1976d2;
        border-color: #1976d2;
    }
    body.light-mode .sidebar-footer .auth-btn-small,
    body.light-mode #user-info .auth-btn-small {
        background: transparent !important;
        color: #f44336 !important;
        border-color: #f44336 !important;
    }
    body.light-mode .toggle-completed-btn,
    body.light-mode .toggle-completed-desktop-btn {
        background: #f5f5f5;
        border-color: #ccc;
        color: #666;
    }
    body.light-mode .toggle-completed-btn:hover,
    body.light-mode .toggle-completed-desktop-btn:hover {
        background: #e8e8e8;
        border-color: #888;
    }
    .add-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    .page-header h2 {
        font-size: 20px;
    }
    .task-card {
        padding: 12px;
    }
    .task-name {
        font-size: 14px;
    }
    .task-description {
        font-size: 12px;
    }
    .task-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    .project-card {
        padding: 12px;
    }
    .project-name {
        font-size: 14px;
    }
    .note-card {
        padding: 15px;
    }
    .note-title {
        font-size: 15px;
    }
    .note-preview {
        font-size: 12px;
    }
    .timer-tabs {
        margin-bottom: 20px;
    }
    .timer-tab-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    .pomodoro-layout {
        flex-direction: column;
        gap: 20px;
    }
    .pomodoro-settings-panel {
        width: 100%;
        min-width: unset;
    }
    .pomodoro-main-area {
        min-width: unset;
        padding: 0 20px;
    }
    .pomodoro-timer-display {
        font-size: 70px;
    }
    .standalone-timer-container {
        padding: 0 20px;
    }
    .digit-display {
        font-size: 36px;
        min-width: 50px;
    }
    .digit-separator {
        font-size: 36px;
    }
    .active-timer-display {
        font-size: 60px;
    }
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }
    .note-modal-content {
        width: 95%;
        max-width: none;
        max-height: 85vh;
    }
    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 16px;
    }
    .save-btn,
    .cancel-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .toggle-completed-desktop-btn {
        display: none !important;
    }
}
/* Very small mobile screens */
@media (max-width: 375px) {
    .sidebar-nav .nav-btn {
        font-size: 9px;
        padding: 6px 4px;
        margin: 0 1px;
    }
    .more-features-btn {
        font-size: 16px !important;
        padding: 6px 4px !important;
    }
}
@media (min-width: 769px) and (min-height: 501px) {
    .toggle-completed-btn {
        display: none;
    }
    .mobile-about-btn {
        display: none;
    }
    .mobile-top-bar {
        display: none;
    }
    .app {
        padding-top: 0;
        height: 100dvh;
    }
    .toggle-completed-desktop-btn {
        display: flex;
        position: fixed;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        background: #333;
        border: 1px solid #555;
        color: #fff;
        width: 30px;
        height: 50px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        z-index: 199;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease;
    }
    .toggle-completed-desktop-btn:hover {
        background: #444;
    }
    .toggle-completed-desktop-btn.panel-open {
        transform: translateY(-50%) translateX(-250px);
    }
    .ai-float-btn {
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 14px;
    }
    .analytics-project-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .analytics-project-item.header {
        display: none;
    }
    .analytics-project-name::before {
        content: "Project: ";
        color: #888;
        font-weight: normal;
    }
    .analytics-project-time::before {
        content: "Time: ";
        color: #888;
        font-weight: normal;
    }
    .analytics-project-tasks::before {
        content: "Tasks: ";
        color: #888;
        font-weight: normal;
    }
}
/* Light Mode */
body.light-mode {
    background: #fff;
    color: #000;
}
body.light-mode .app {
    background: #fff;
}
body.light-mode .sidebar {
    background: #f5f5f5;
    border-right-color: #ddd;
}
body.light-mode .sidebar-header h1,
body.light-mode .nav-btn,
body.light-mode .mobile-title,
body.light-mode .section-title,
body.light-mode .task-name,
body.light-mode .project-name,
body.light-mode .note-title,
body.light-mode .checklist-name,
body.light-mode .timer-display,
body.light-mode .timer-label,
body.light-mode .tab-btn,
body.light-mode .modal-header h3,
body.light-mode .form-group label,
body.light-mode .setting-item,
body.light-mode .settings-section h4,
body.light-mode .language-label {
    color: #000;
}
body.light-mode .nav-btn:hover,
body.light-mode .nav-btn.active {
    background: rgba(0, 0, 0, 0.1);
}
body.light-mode .main-content,
body.light-mode .content-wrapper,
body.light-mode .content-section,
body.light-mode .completed-section {
    background: #fff;
}
body.light-mode .task-card,
body.light-mode .calendar-task-card,
body.light-mode .project-item,
body.light-mode .note-card,
body.light-mode .checklist-card,
body.light-mode .timer-card,
body.light-mode .modal-content,
body.light-mode .settings-body,
body.light-mode .about-body {
    background: #f9f9f9;
    border-color: #ddd;
}
body.light-mode .task-card .task-name,
body.light-mode .calendar-task-card .task-name {
    color: #000;
}
body.light-mode .task-description,
body.light-mode .task-priority,
body.light-mode .task-focus-time,
body.light-mode .note-preview,
body.light-mode .checklist-count,
body.light-mode .about-body {
    color: #555;
}
body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background: #fff;
    border-color: #ccc;
    color: #000;
    resize: none;
}
body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #44aaff;
}
body.light-mode .footer-btn,
body.light-mode .about-btn,
body.light-mode .mobile-top-icon-btn {
    border-color: #ccc;
    color: #555;
}
body.light-mode .footer-btn:hover,
body.light-mode .about-btn:hover,
body.light-mode .mobile-top-icon-btn:hover {
    border-color: #888;
    color: #000;
}
body.light-mode .checklist-item,
body.light-mode .checklist-item-name,
body.light-mode .auth-modal-header h3 {
    color: #333;
}
body.light-mode .checklist-checkbox-box {
    border-color: #333;
}
body.light-mode .checklist-item.checked .checklist-item-name {
    color: #999;
}
body.light-mode .checklist-item.checked .checklist-checkbox-box {
    background: #333;
}
body.light-mode .checklist-item.checked .checklist-checkbox-box::after {
    color: #fff;
}
body.light-mode .modal-content {
    background: #fff;
}
body.light-mode .checklist-item-input-group input {
    background: #fff;
    border-color: #ccc;
    color: #000;
}
body.light-mode .checklist-item-input-group input:focus {
    border-color: #44aaff;
}
body.light-mode .remove-item-btn {
    border-color: #ff4444;
    color: #ff4444;
}
body.light-mode .add-checklist-item-btn {
    border-color: #44aaff;
    color: #44aaff;
}
body.light-mode .add-checklist-item-btn:hover {
    background: rgba(68, 170, 255, 0.1);
}
body.light-mode .toggle-password-btn {
    color: #666;
}
body.light-mode .theme-slider {
    background-color: #ccc;
    border-color: #aaa;
}
body.light-mode input:checked + .theme-slider {
    background-color: #333;
    border-color: #333;
}
body.light-mode input:checked + .theme-slider:before {
    background-color: #fff;
}
body.light-mode .theme-label-dark {
    color: #333;
}
body.light-mode .theme-label-light {
    color: #888;
}
body.light-mode .theme-label-light.active {
    color: #333;
}
body.light-mode .language-select {
    background: #fff;
    border-color: #ccc;
    color: #333;
}
body.light-mode .language-select:focus {
    border-color: #44aaff;
}
body.light-mode .language-section {
    border-top-color: #ddd;
}
body.light-mode .language-label {
    color: #333;
}
/* Welcome Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.welcome-popup.hidden {
    opacity: 0;
    visibility: hidden;
}
.welcome-popup:not(.hidden) {
    opacity: 1;
    visibility: visible;
}
.welcome-content {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.welcome-popup:not(.hidden) .welcome-content {
    transform: scale(1);
    opacity: 1;
}
.close-welcome-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.close-welcome-btn:hover {
    color: #fff;
}
.welcome-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}
.welcome-content p {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 30px;
}
.welcome-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid #44aaff;
    color: #44aaff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.welcome-btn:hover {
    background: rgba(68, 170, 255, 0.15);
}
.welcome-lang-section {
    margin: 20px 0 24px;
}
.welcome-lang-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}
.welcome-lang-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.welcome-lang-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.welcome-lang-btn:hover {
    border-color: #888;
    color: #fff;
}
.welcome-lang-btn.active {
    background: #333;
    border-color: #44aaff;
    color: #44aaff;
}
body.light-mode .welcome-content {
    background: #f9f9f9;
    border-color: #ddd;
}
body.light-mode .welcome-content h2 {
    color: #000;
}
body.light-mode .welcome-content p {
    color: #555;
}
body.light-mode .close-welcome-btn {
    color: #999;
}
body.light-mode .close-welcome-btn:hover {
    color: #000;
}
body.light-mode .welcome-lang-label {
    color: #000;
}
body.light-mode .welcome-lang-btn {
    border-color: #ccc;
    color: #666;
}
body.light-mode .welcome-lang-btn:hover {
    border-color: #aaa;
    color: #333;
}
body.light-mode .welcome-lang-btn.active {
    background: #f0f0f0;
    border-color: #2196f3;
    color: #2196f3;
}
/* AI Assistant Floating Button */
.ai-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #44aaff;
    color: #44aaff;
    font-size: 16px;
    font-weight: 700;
    cursor: grab;
    z-index: 9999;
    box-shadow: none;
    transition: transform 0.15s, border-color 0.15s, color 0.15s, opacity 0.2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.ai-float-btn.behind-modal {
    opacity: 0.15;
    pointer-events: none;
    z-index: 999;
}
.ai-float-btn:hover {
    transform: scale(1.08);
    border-color: #66bbff;
    color: #66bbff;
}
.ai-float-btn:active {
    cursor: grabbing;
}
.ai-float-btn.panel-open {
    opacity: 0.7;
}
body.light-mode .ai-float-btn {
    border-color: #2196f3;
    color: #2196f3;
    box-shadow: none;
}
body.light-mode .ai-float-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
}
/* AI Assistant Panel */
.ai-panel {
    position: fixed;
    width: 340px;
    height: 500px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.ai-panel.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
}
.ai-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #333;
}
.ai-panel-tabs {
    display: flex;
    gap: 6px;
}
.ai-panel-tab {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.ai-panel-tab:hover {
    border-color: #666;
    color: #ccc;
}
.ai-panel-tab.active {
    border-color: #44aaff;
    color: #44aaff;
}
.ai-panel-header h3 {
    margin: 0;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}
.ai-panel-close {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.ai-panel-close:hover {
    color: #fff;
}
.ai-me-header {
    padding: 12px 0;
}
.ai-me-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}
.ai-me-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}
.ai-me-input {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    padding: 10px;
    resize: none;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    min-height: 150px;
}
.ai-me-input:focus {
    outline: none;
    border-color: #44aaff;
}
.ai-me-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-shrink: 0;
}
.ai-me-char-count {
    font-size: 11px;
    color: #666;
}
.ai-me-char-count.limit-warn {
    color: #ff4444;
}
.ai-me-save-btn {
    background: transparent;
    border: 1px solid #44aaff;
    color: #44aaff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ai-me-save-btn:hover {
    background: rgba(68, 170, 255, 0.1);
}
.ai-input-header {
    margin-bottom: 6px;
}
.ai-new-chat-btn {
    background: transparent;
    border: none;
    color: #44aaff;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s;
}
.ai-new-chat-btn:hover {
    color: #66bbff;
}
.ai-panel-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
#ai-view-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 120px;
    min-height: 0;
}
#ai-view-chat.has-messages {
    overflow-y: auto;
    padding: 16px;
}
#ai-view-me {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    min-height: 0;
    overflow-y: auto;
}
.ai-me-header {
    padding-bottom: 12px;
    flex-shrink: 0;
}
.ai-me-input {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    padding: 10px;
    resize: none;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
    height: 70%;
}
.ai-empty-state {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    padding: 0;
    gap: 8px;
}
.ai-examples-container {
    position: relative;
    height: 36px;
    width: 100%;
    max-width: 260px;
}
.ai-empty-example {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-style: italic;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
    max-height: 36px;
    overflow: hidden;
}
.ai-empty-example.active {
    opacity: 1;
}
.ai-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.ai-examples-container {
    position: relative;
    height: 20px;
    margin-top: 8px;
}
.ai-empty-example {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-style: italic;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
}
.ai-empty-example.active {
    opacity: 1;
}
.ai-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.ai-message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.ai-message.user {
    align-self: flex-end;
    background: #44aaff;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ai-message.assistant {
    align-self: flex-start;
    background: #2a2a2a;
    color: #ddd;
    border-bottom-left-radius: 4px;
}
.ai-message.assistant .ai-actions-summary {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #444;
    font-size: 11px;
    color: #4caf50;
}
.ai-message.loading {
    align-self: flex-start;
    background: #2a2a2a;
    color: #888;
    font-style: italic;
}
.ai-panel-footer {
    border-top: 1px solid #333;
    padding: 10px 12px;
}
.ai-input {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    padding: 8px 10px;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
    box-sizing: border-box;
}
.ai-input:focus {
    outline: none;
    border-color: #44aaff;
}
.ai-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}
.ai-char-count {
    font-size: 11px;
    color: #666;
}
.ai-char-count.limit-warn {
    color: #ff4444;
}
.ai-send-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ai-send-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ccc;
}
.ai-send-btn:disabled {
    border-color: #444;
    color: #444;
    cursor: not-allowed;
}
/* AI Panel Light Mode */
body.light-mode .ai-panel {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
body.light-mode .ai-panel-header {
    border-bottom-color: #eee;
}
body.light-mode .ai-panel-header h3 {
    color: #000;
}
body.light-mode .ai-panel-close {
    color: #999;
}
body.light-mode .ai-panel-close:hover {
    color: #000;
}
body.light-mode .ai-empty-title {
    color: #000;
}
body.light-mode .ai-empty-example {
    color: #888;
}
body.light-mode .ai-message.user {
    background: #2196f3;
}
body.light-mode .ai-message.assistant {
    background: #f0f0f0;
    color: #333;
}
body.light-mode .ai-message.assistant .ai-actions-summary {
    border-top-color: #ddd;
}
body.light-mode .ai-panel-tab {
    border-color: #ddd;
    color: #888;
}
body.light-mode .ai-panel-tab:hover {
    border-color: #bbb;
    color: #555;
}
body.light-mode .ai-panel-tab.active {
    border-color: #2196f3;
    color: #2196f3;
}
body.light-mode .ai-me-title {
    color: #000;
}
body.light-mode .ai-me-input {
    background: #f5f5f5;
    border-color: #ccc;
    color: #000;
}
body.light-mode .ai-me-input:focus {
    border-color: #2196f3;
}
body.light-mode .ai-me-save-btn {
    border-color: #2196f3;
    color: #2196f3;
}
body.light-mode .ai-me-save-btn:hover {
    background: rgba(33, 150, 243, 0.1);
}
body.light-mode .ai-new-chat-btn {
    color: #2196f3;
}
body.light-mode .ai-new-chat-btn:hover {
    color: #1976d2;
}
body.light-mode .ai-panel-footer {
    border-top-color: #eee;
}
body.light-mode .ai-input {
    background: #f5f5f5;
    border-color: #ccc;
    color: #000;
}
body.light-mode .ai-input:focus {
    border-color: #2196f3;
}
body.light-mode .ai-send-btn {
    background: transparent;
    border-color: #2196f3;
    color: #2196f3;
}
body.light-mode .ai-send-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: #1976d2;
}
body.light-mode .ai-send-btn:disabled {
    border-color: #ccc;
    color: #ccc;
}
body.light-mode p,
body.light-mode span,
body.light-mode div {
    color: #333;
}
body.light-mode .save-btn,
body.light-mode .cancel-btn {
    color: #333;
    border-color: #666;
}
body.light-mode .save-btn {
    border-color: #4caf50;
    color: #4caf50;
}
body.light-mode .cancel-btn {
    border-color: #f44336;
    color: #f44336;
}
body.light-mode .close-btn {
    color: #555;
}
body.light-mode .sidebar-nav .nav-btn {
    color: #333;
}
body.light-mode .sidebar-footer-buttons .footer-btn {
    color: #555;
    border-color: #ccc;
}
body.light-mode .sidebar-footer-buttons .footer-btn:hover {
    border-color: #888;
    color: #000;
}
body.light-mode .checklist-item-checkbox + label {
    border-color: #333;
}
body.light-mode .checklist-toggle {
    color: #666;
}
body.light-mode .checklist-item-btn {
    color: #888;
    border-color: #ccc;
}
body.light-mode .checklist-item-btn:hover {
    color: #333;
    border-color: #888;
}
body.light-mode .tab-btn {
    color: #666;
    border-color: #ccc;
}
body.light-mode .tab-btn.active,
body.light-mode .tab-btn:hover {
    color: #333;
    border-color: #888;
}
body.light-mode .timer-btn,
body.light-mode .timer-secondary-btn {
    color: #555;
    border-color: #ccc;
}
body.light-mode .timer-btn:hover,
body.light-mode .timer-secondary-btn:hover {
    color: #000;
    border-color: #888;
}
body.light-mode .timer-btn.start-btn {
    border-color: #4caf50;
    color: #4caf50;
}
body.light-mode .timer-btn.stop-btn {
    border-color: #f44336;
    color: #f44336;
}
body.light-mode .project-count,
body.light-mode .task-count,
body.light-mode .note-count {
    color: #888;
}
body.light-mode .task-card,
body.light-mode .project-item,
body.light-mode .note-card,
body.light-mode .checklist-card {
    color: #333;
}
body.light-mode .task-name,
body.light-mode .project-name,
body.light-mode .note-title {
    color: #000;
}
body.light-mode .empty-message,
body.light-mode .empty-state {
    color: #888;
}
body.light-mode .loading-text {
    color: #555;
}
body.light-mode .cancel-loading-btn {
    color: #666;
    border-color: #ccc;
}
body.light-mode .checklist-header {
    background: #f5f5f5;
}
body.light-mode .checklist-items {
    background: #fafafa;
}
body.light-mode .checklist-items.expanded {
    border-top-color: #e0e0e0;
}
body.light-mode .nav-btn.active {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}
body.light-mode .auth-buttons-column .signin-btn {
    background: transparent;
    color: #333;
    border: 1px solid #333;
}
body.light-mode .auth-buttons-column .signin-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #333 !important;
    color: #333 !important;
}
body.light-mode .signin-btn {
    color: #333;
}
body.light-mode .auth-error {
    color: #f44336;
}
body.light-mode .auth-success {
    color: #4caf50;
}
body.light-mode .forgot-password-link {
    color: #2196f3;
}
body.light-mode .remove-item-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}
body.light-mode .modal-header {
    border-bottom-color: #ddd;
}
body.light-mode .modal-footer {
    border-top-color: #ddd;
}
body.light-mode .checklist-item-input-group .remove-item-btn {
    background: transparent;
    color: #ff4444;
    border-color: #ff4444;
}
body.light-mode .checklist-item-input-group .remove-item-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}
body.light-mode .checklist-item-input-group .add-checklist-item-btn {
    background: transparent;
    color: #44aaff;
    border-color: #44aaff;
}
body.light-mode .checklist-item-input-group .add-checklist-item-btn:hover {
    background: rgba(68, 170, 255, 0.1);
}
body.light-mode .sidebar-header {
    border-bottom-color: #ddd;
}
body.light-mode .sidebar-footer {
    border-top-color: #ddd;
}
body.light-mode #user-info span {
    color: #333;
}
body.light-mode .mobile-top-icon-btn svg {
    stroke: #555;
}
body.light-mode .mobile-top-icon-btn:hover svg {
    stroke: #000;
}
body.light-mode .mobile-top-bar {
    background: #f5f5f5;
    border-bottom-color: #ddd;
}
body.light-mode .mobile-top-buttons {
    background: #f5f5f5;
}
body.light-mode .more-features-panel {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
body.light-mode .toggle-completed-desktop-btn {
    background: #f5f5f5;
    border-color: #ccc;
    color: #666;
}
body.light-mode .add-btn {
    border-color: #666;
    color: #555;
}
body.light-mode .add-btn:hover {
    border-color: #333;
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}
body.light-mode .task-btn {
    border-color: #666;
    color: #555;
}
body.light-mode .task-btn:hover {
    border-color: #333;
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}
body.light-mode .delete-btn {
    border-color: #ff4444;
    color: #ff4444;
}
body.light-mode .delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}
body.light-mode .edit-btn {
    border-color: #44aaff;
    color: #44aaff;
}
body.light-mode .edit-btn:hover {
    background: rgba(68, 170, 255, 0.2);
}
body.light-mode .priority-high {
    background: #f0f0f0;
    color: #d32f2f;
}
body.light-mode .priority-medium {
    background: #f0f0f0;
    color: #f57c00;
}
body.light-mode .priority-low {
    background: #f0f0f0;
    color: #1976d2;
}
body.light-mode .timer-tab-btn {
    border-color: #ccc;
    color: #666;
}
body.light-mode .timer-tab-btn:hover {
    border-color: #888;
    color: #333;
}
body.light-mode .timer-tab-btn.active {
    background: #f0f0f0;
    border-color: #44aaff;
    color: #44aaff;
}
body.light-mode .digit-btn {
    border-color: #ccc;
    color: #555;
}
body.light-mode .digit-btn:hover {
    background: #f0f0f0;
    border-color: #888;
}
body.light-mode .digit-btn:active {
    background: #e0e0e0;
}
body.light-mode .pomodoro-settings-panel {
    background: #f9f9f9;
    border-color: #ddd;
}
body.light-mode .pomodoro-settings-panel h3 {
    color: #555;
}
body.light-mode .pomodoro-setting-label {
    color: #666;
}
body.light-mode .pomodoro-setting-btn {
    border-color: #ccc;
    color: #555;
}
body.light-mode .pomodoro-setting-btn:hover {
    background: #f0f0f0;
    border-color: #888;
}
body.light-mode .pomodoro-setting-value {
    color: #333;
}
body.light-mode .timer-display {
    color: #333;
}
body.light-mode .digit-display,
body.light-mode .digit-separator {
    color: #333;
}
body.light-mode .digit-label {
    color: #666;
}
body.light-mode .active-timer-display {
    color: #333;
}
body.light-mode .timer-completed-section p,
body.light-mode .times-up-text {
    color: #333;
}
body.light-mode .pomodoro-stage-label {
    color: #333;
}
body.light-mode .pomodoro-cycle-count {
    color: #666;
}
body.light-mode .pomodoro-timer-display {
    color: #333;
}
body.light-mode .timer-controls {
    color: #555;
}
body.light-mode .focus-progress-container {
    background: #e0e0e0;
}
body.light-mode .cancel-timer-btn {
    border-color: #f44336;
    color: #f44336;
}
body.light-mode .cancel-timer-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}
body.light-mode .complete-timer-btn {
    border-color: #4caf50;
    color: #4caf50;
}
body.light-mode .complete-timer-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}
body.light-mode .pomodoro-start-btn {
    border-color: #4caf50;
    color: #4caf50;
}
body.light-mode .pomodoro-start-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}
body.light-mode .pomodoro-start-btn.paused {
    border-color: #ff9800;
    color: #ff9800;
}
body.light-mode .start-focus-btn {
    border-color: #4caf50;
    color: #4caf50;
}
body.light-mode .start-focus-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}
body.light-mode .cancel-focus-btn {
    border-color: #f44336;
    color: #f44336;
}
body.light-mode .cancel-focus-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}
body.light-mode .task-completed-body {
    color: #555;
}
body.light-mode .completed-task {
    background: #fff;
    color: #555;
}
body.light-mode .completed-label {
    color: #888;
}
body.light-mode .project-card {
    background: #f5f5f5;
    color: #333;
}
body.light-mode .project-name {
    color: #000;
}
body.light-mode .progress-bar {
    background: #ddd;
}
body.light-mode .progress-fill {
    background: #4caf50;
}
body.light-mode .note-card {
    background: #f5f5f5;
    border-color: #ddd;
}
body.light-mode .note-preview {
    color: #666;
}
body.light-mode .task-description {
    color: #666;
}
body.light-mode .task-focus-time {
    color: #888;
}
body.light-mode .task-footer {
    border-top-color: #eee;
}
body.light-mode .task-priority {
    color: #888;
}
body.light-mode .task-footer span {
    color: #888;
}
body.light-mode .toggle-panel-btn {
    background: transparent;
    border-color: #ccc;
    color: #666;
}
body.light-mode .toggle-panel-btn:hover {
    border-color: #888;
    color: #333;
}
body.light-mode .timer-section-title {
    color: #555;
}
body.light-mode .pomodoro-sessions {
    color: #888;
}
body.light-mode .session-indicator {
    background: #ddd;
}
body.light-mode .session-indicator.active {
    background: #4caf50;
}
body.light-mode .session-indicator.completed {
    background: #888;
}
body.light-mode .settings-modal-content {
    background: #fff;
}
body.light-mode .settings-body {
    background: #fff;
}
body.light-mode .settings-section h4 {
    color: #333;
}
body.light-mode .setting-item {
    color: #555;
    border-bottom-color: #eee;
}
body.light-mode .task-card {
    background: #f9f9f9;
    border-color: #ddd;
}
body.light-mode .section-title {
    color: #333;
}
body.light-mode .project-item {
    background: #f9f9f9;
    border-color: #ddd;
}
body.light-mode .checklist-count {
    color: #888;
}
body.light-mode .about-modal-content {
    background: #fff;
}
body.light-mode .about-body {
    background: #fff;
    color: #555;
}
body.light-mode .about-body p,
body.light-mode .about-body li {
    color: #555;
}
body.light-mode .about-version {
    color: #999;
}
body.light-mode .about-description {
    color: #333;
}
body.light-mode .about-features li strong {
    color: #1976d2;
}
body.light-mode .about-screenshot-caption {
    color: #888;
}
body.light-mode .about-sync {
    color: #888;
}
body.light-mode .loading-content {
    background: #fff;
    border-color: #ddd;
}
body.light-mode .cancel-loading-btn:hover {
    border-color: #888;
    color: #333;
}
body.light-mode .auth-modal-content {
    background: #fff;
}
body.light-mode .auth-modal-header h3 {
    color: #333;
}
body.light-mode .close-btn:hover {
    color: #000;
}
body.light-mode .toggle-completed-desktop-btn:hover {
    background: #e8e8e8;
}
body.light-mode .task-btn.delete-btn {
    border-color: #ff4444;
    color: #ff4444;
}
body.light-mode .task-btn.delete-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-color: #ff4444;
}
body.light-mode .completed-panel {
    background: #f5f5f5;
    border-left-color: #ddd;
}
body.light-mode .completed-section {
    background: #f5f5f5;
    border-color: #ddd;
}
body.light-mode .panel-header h3 {
    color: #333;
}
body.light-mode .priority-btn {
    background: #fff;
    border-color: #ccc;
    color: #555;
}
body.light-mode .priority-btn:hover {
    background: #f0f0f0;
    border-color: #888;
}
body.light-mode .priority-btn.active {
    background: #e0e0e0;
    border-color: #888;
    color: #333;
}
body.light-mode .checklist-delete-btn {
    color: #ff4444;
    border-color: #ff4444;
}
body.light-mode .checklist-delete-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-color: #ff4444;
}
body.light-mode .note-delete-btn {
    color: #ff4444;
    border-color: #ff4444;
}
body.light-mode .note-delete-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-color: #ff4444;
}
body.light-mode .confirm-delete-btn {
    background: transparent;
    border: 1px solid #f44336;
    color: #f44336;
}
body.light-mode .confirm-delete-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}
body.light-mode .back-btn {
    color: #333;
}
body.light-mode .back-btn:hover {
    color: #000;
}
body.light-mode .back-to-auth-btn {
    color: #666;
}
body.light-mode .back-to-auth-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}
body.light-mode .auth-icon-wrapper svg {
    color: #2196f3;
}
body.light-mode .auth-description {
    color: #666;
}
body.light-mode #time-display {
    color: #333;
}
body.light-mode .focus-timer-content {
    background: #fff;
}
body.light-mode .project-progress {
    background: #e0e0e0;
}
body.light-mode .project-progress-bar {
    background: linear-gradient(90deg, #64b5f6, #81c784);
}
body.light-mode #progress-bar {
    background: linear-gradient(90deg, #64b5f6, #81c784);
}
body.light-mode #focus-progress-bar {
    background: linear-gradient(90deg, #64b5f6, #81c784);
}
body.light-mode #pomodoro-progress-bar {
    background: linear-gradient(90deg, #64b5f6, #81c784);
}
body.light-mode #progress-container {
    background: #e0e0e0;
}
body.light-mode .pomodoro-progress-container {
    background: #e0e0e0;
}