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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.app {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.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;
}

#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);
}

.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: 450px;
}

.about-body {
    padding: 20px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.about-body ul {
    margin-left: 20px;
    margin-top: 5px;
}

.about-body li {
    margin-bottom: 5px;
}

.about-version {
    color: #666;
    font-size: 12px;
    text-align: center;
}

.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: 400px;
}

.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;
}

.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;
}

.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;
}

.page.active {
    display: block;
}

.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 {
    width: 250px;
    background: #1a1a1a;
    border-left: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.panel-header {
    margin-bottom: 15px;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.completed-tasks {
    display: flex;
    flex-direction: column;
    gap: 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;
}

.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: none;
    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;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.focus-timer-content {
    max-width: 400px;
}

.task-completed-content {
    max-width: 400px;
    text-align: center;
}

.task-completed-body {
    padding: 30px 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;
    border-bottom: 1px solid #333;
}

.modal-body {
    padding: 20px 15px;
}

.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-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;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

/* 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;
}

.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%;
    
}

.timer-controls {
    text-align: center;
    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);
}

/* 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: 25px 25px 35px 25px;
    border-top: 1px solid #333;
    justify-content: flex-end;
}

.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;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ========================================
   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;
}

.timer-tab-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.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;
}

.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 1s linear;
}

.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: 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;
}

/* Mobile Styles - detect by screen size and aspect ratio */
@media (max-width: 768px), (max-height: 500px) {
    .mobile-top-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #1a1a1a;
        border-bottom: 1px solid #333;
        padding: 12px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }

    .mobile-title {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
    }

    .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: 100;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-footer {
        position: fixed;
        bottom: 65px;
        left: 10px;
        right: auto;
        width: auto;
        padding: 0;
        z-index: 99;
        margin: 0;
    }

    .sidebar-footer #auth-section {
        width: auto;
    }

    .sidebar-footer .auth-btn {
        background: #333;
        border: 1px solid #555;
        color: #fff;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 12px;
        width: auto;
        white-space: nowrap;
    }

    .sidebar-footer .auth-btn:hover {
        background: #444;
        border-color: #666;
    }

    .sidebar-footer .auth-btn-small,
    #user-info .auth-btn-small {
        background: #333;
        border: 1px solid #555;
        color: #fff;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 12px;
        width: auto;
        white-space: nowrap;
        cursor: pointer;
    }

    .sidebar-footer #user-info {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sidebar-footer #user-email {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        text-align: left;
        margin-bottom: 0;
    }

    .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;
    }

    .main-content {
        flex: 1;
        padding-bottom: 70px;
        order: 1;
    }

    .completed-panel {
        display: none;
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        top: auto;
        height: auto;
        max-height: 200px;
        width: 100%;
        border-top: 1px solid #333;
        border-right: none;
        z-index: 100;
        overflow-y: auto;
    }

    .completed-panel.visible {
        display: block;
    }

    .toggle-completed-btn {
        display: block;
        position: fixed;
        bottom: 65px;
        right: 10px;
        z-index: 101;
        background: #333;
        border: 1px solid #555;
        color: #fff;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 12px;
        cursor: pointer;
    }

    .mobile-about-btn {
        display: block;
        position: fixed;
        bottom: 65px;
        right: 95px;
        z-index: 101;
        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;
    }

    .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;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 14px;
    }

    .save-btn,
    .cancel-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@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;
    }
}
