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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    padding: 20px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Scale classes */
body.scale-1 {
    transform: none;
}

body.scale-0-5 {
    transform: scale(0.5);
    transform-origin: top left;
    width: 200vw;
}

body.scale-0-5 .container {
    max-width: 1600px;
}

body.scale-1-5 {
    transform: scale(1.5);
    transform-origin: top left;
    width: 66.667vw;
}

html:has(body.scale-0-5),
html:has(body.scale-1-5) {
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
}

.header-title {
    font-size: 0.95em;
    font-weight: bold;
    white-space: nowrap;
}

.info-notice {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    transition: opacity 0.3s, transform 0.3s;
}

.info-notice.hidden {
    display: none;
}

.info-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-close {
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.info-close:hover {
    opacity: 1;
}

h1 {
    font-size: 2.5em;
}

.theme-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.theme-toggle {
    padding: 8px 12px;
    border-radius: 5px;
    border: 2px solid;
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.theme-toggle:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-select-dropdown {
    padding: 8px 12px;
    border-radius: 5px;
    border: 2px solid;
    font-size: 1em;
    cursor: pointer;
    display: none;
}

.theme-selector.expanded .theme-select-dropdown {
    display: block;
}

.theme-selector.expanded .theme-toggle {
    display: none;
}

.view-toggle-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.view-toggle-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.view-toggle-btn:active {
    transform: translateY(0);
}

.scale-toggle-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.scale-toggle-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.scale-toggle-btn:active {
    transform: translateY(0);
}

/* Profile dropdown */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-toggle:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.profile-toggle:active {
    transform: translateY(0);
}

.profile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    border-radius: 8px;
    border: 2px solid;
    min-width: 120px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-menu.show {
    display: block;
}

.profile-menu-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95em;
    text-align: left;
    transition: opacity 0.2s;
}

.profile-menu-item:hover {
    opacity: 0.8;
}

.profile-menu-item:first-child {
    border-radius: 6px 6px 0 0;
}

.profile-menu-item:last-child {
    border-radius: 0 0 6px 6px;
}

/* View mode visibility controls */
body[data-view-mode="minimal"] .add-todo,
body[data-view-mode="minimal"] .filters,
body[data-view-mode="minimal"] .uncompleted-actions,
body[data-view-mode="minimal"] .completed-section,
body[data-view-mode="minimal"] .switch-user-btn,
body[data-view-mode="minimal"] .info-notice,
body[data-view-mode="minimal"] .uncompleted-header-wrapper h2 {
    display: none !important;
}

body[data-view-mode="standard"] .filters,
body[data-view-mode="standard"] .uncompleted-actions,
body[data-view-mode="standard"] .switch-user-btn {
    display: none !important;
}

.controls {
    margin-bottom: 30px;
}

.add-todo {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.add-todo input {
    flex: 1;
    padding: 12px;
    border-radius: 5px;
    border: 2px solid;
    font-size: 1em;
}

.add-todo button, .todo-item button {
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: opacity 0.2s;
}

.add-todo button:hover, .todo-item button:hover {
    opacity: 0.8;
}

.filters {
    display: flex;
    gap: 10px;
}

.filters input {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid;
    font-size: 0.95em;
}

.filters select {
    padding: 10px;
    border-radius: 5px;
    border: 2px solid;
    font-size: 0.95em;
    cursor: pointer;
}

.todo-list, .completed-section {
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.uncompleted-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.uncompleted-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.complete-all-btn, .clear-all-btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.complete-all-btn:hover, .clear-all-btn:hover {
    opacity: 0.8;
}

.collapsible {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {
    transition: transform 0.3s;
}

.collapsible.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

ul {
    list-style: none;
}

#completed-list.collapsed {
    display: none;
}

.completed-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.clear-completed-btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.clear-completed-btn:hover {
    opacity: 0.8;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 2px solid;
    transition: opacity 0.3s, transform 0.2s;
}

.todo-item:hover {
    transform: translateX(5px);
}

.todo-item.dragging {
    opacity: 0.5;
    transform: scale(1.05);
}

.touch-placeholder {
    opacity: 0.3;
    border-style: dashed !important;
    background: transparent !important;
}

.drag-handle {
    cursor: grab;
    font-size: 1.2em;
    opacity: 0.6;
    user-select: none;
    padding: 5px 8px;
    transition: opacity 0.2s, background-color 0.2s;
    border-radius: 4px;
    margin: -5px 0;
}

.drag-handle:hover {
    opacity: 1;
    background-color: rgba(128, 128, 128, 0.2);
}

.drag-handle:active {
    cursor: grabbing;
}

.todo-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.todo-item .todo-text {
    flex: 1;
    font-size: 1.1em;
    word-break: break-word;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.todo-item button {
    padding: 8px 12px;
    font-size: 0.9em;
}

.button-container {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.todo-edit-input {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: 2px solid;
    font-size: 1.1em;
    font-family: inherit;
}

.save-btn, .cancel-btn {
    min-width: 60px;
}

.edit-btn, .delete-btn {
    padding: 8px 8px;
    min-width: unset;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Theme: Dark (default) */
body[data-theme="dark"] {
    background-color: #1a1a2e;
    color: #eee;
}

body[data-theme="dark"] .add-todo input,
body[data-theme="dark"] .filters input,
body[data-theme="dark"] .filters select,
body[data-theme="dark"] .theme-select-dropdown,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .todo-edit-input {
    background-color: #16213e;
    color: #eee;
    border-color: #0f3460;
}

body[data-theme="dark"] .todo-item {
    background-color: #16213e;
    border-color: #0f3460;
}

body[data-theme="dark"] .add-todo button {
    background-color: #e94560;
    color: white;
}

body[data-theme="dark"] .todo-item button {
    background-color: #533483;
    color: white;
}

body[data-theme="dark"] .clear-completed-btn {
    background-color: #e94560;
    color: white;
}

body[data-theme="dark"] .info-notice {
    background-color: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(15, 52, 96, 0.5);
}

body[data-theme="dark"] .info-close {
    color: #eee;
}

body[data-theme="dark"] .view-toggle-btn,
body[data-theme="dark"] .scale-toggle-btn {
    background-color: #533483;
    color: white;
}

body[data-theme="dark"] .profile-toggle {
    background-color: #533483;
    color: white;
}

body[data-theme="dark"] .profile-menu {
    background-color: #16213e;
    border-color: #0f3460;
}

body[data-theme="dark"] .profile-menu-item {
    color: #eee;
}

body[data-theme="dark"] .todo-text a {
    color: #81d4fa;
}

body[data-theme="dark"] .drag-handle {
    color: #eee;
}

body[data-theme="dark"] .complete-all-btn {
    background-color: #4caf50;
    color: white;
}

body[data-theme="dark"] .clear-all-btn {
    background-color: #f44336;
    color: white;
}

/* Theme: Light */
body[data-theme="light"] {
    background-color: #f5f5f5;
    color: #333;
}

body[data-theme="light"] .add-todo input,
body[data-theme="light"] .filters input,
body[data-theme="light"] .filters select,
body[data-theme="light"] .theme-select-dropdown,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .todo-edit-input {
    background-color: white;
    color: #333;
    border-color: #ddd;
}

body[data-theme="light"] .todo-item {
    background-color: white;
    border-color: #ddd;
}

body[data-theme="light"] .add-todo button {
    background-color: #4a90e2;
    color: white;
}

body[data-theme="light"] .todo-item button {
    background-color: #e74c3c;
    color: white;
}

body[data-theme="light"] .clear-completed-btn {
    background-color: #95a5a6;
    color: white;
}

body[data-theme="light"] .info-notice {
    background-color: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

body[data-theme="light"] .info-close {
    color: #333;
}

body[data-theme="light"] .view-toggle-btn,
body[data-theme="light"] .scale-toggle-btn {
    background-color: #95a5a6;
    color: white;
}

body[data-theme="light"] .profile-toggle {
    background-color: #95a5a6;
    color: white;
}

body[data-theme="light"] .profile-menu {
    background-color: white;
    border-color: #ddd;
}

body[data-theme="light"] .profile-menu-item {
    color: #333;
}

body[data-theme="light"] .todo-text a {
    color: #4a90e2;
}

body[data-theme="light"] .drag-handle {
    color: #333;
}

body[data-theme="light"] .complete-all-btn {
    background-color: #4caf50;
    color: white;
}

body[data-theme="light"] .clear-all-btn {
    background-color: #f44336;
    color: white;
}

/* Theme: Retro */
body[data-theme="retro"] {
    background-color: #0f0f0f;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    image-rendering: pixelated;
}

body[data-theme="retro"] * {
    font-family: 'Courier New', monospace;
}

body[data-theme="retro"] .add-todo input,
body[data-theme="retro"] .filters input,
body[data-theme="retro"] .filters select,
body[data-theme="retro"] .theme-select-dropdown,
body[data-theme="retro"] .theme-toggle,
body[data-theme="retro"] .todo-edit-input {
    background-color: #1a1a1a;
    color: #00ff00;
    border-color: #00ff00;
}

body[data-theme="retro"] .todo-item {
    background-color: #1a1a1a;
    border-color: #00ff00;
}

body[data-theme="retro"] .add-todo button {
    background-color: #ff00ff;
    color: #0f0f0f;
}

body[data-theme="retro"] .todo-item button {
    background-color: #ff0000;
    color: #0f0f0f;
}

body[data-theme="retro"] .clear-completed-btn {
    background-color: #ffff00;
    color: #0f0f0f;
}

body[data-theme="retro"] .info-notice {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

body[data-theme="retro"] .info-close {
    color: #00ff00;
}

body[data-theme="retro"] .view-toggle-btn,
body[data-theme="retro"] .scale-toggle-btn {
    background-color: #ffff00;
    color: #0f0f0f;
}

body[data-theme="retro"] .profile-toggle {
    background-color: #ffff00;
    color: #0f0f0f;
}

body[data-theme="retro"] .profile-menu {
    background-color: #1a1a1a;
    border-color: #00ff00;
}

body[data-theme="retro"] .profile-menu-item {
    color: #00ff00;
}

body[data-theme="retro"] .todo-text a {
    color: #00ffff;
}

body[data-theme="retro"] .drag-handle {
    color: #00ff00;
}

body[data-theme="retro"] .complete-all-btn {
    background-color: #00ff00;
    color: #0f0f0f;
}

body[data-theme="retro"] .clear-all-btn {
    background-color: #ff0000;
    color: #0f0f0f;
}

/* Theme: Banana */
body[data-theme="banana"] {
    background-color: #fff9e6;
    color: #5c4d00;
}

body[data-theme="banana"] .add-todo input,
body[data-theme="banana"] .filters input,
body[data-theme="banana"] .filters select,
body[data-theme="banana"] .theme-select-dropdown,
body[data-theme="banana"] .theme-toggle,
body[data-theme="banana"] .todo-edit-input {
    background-color: #fffaed;
    color: #5c4d00;
    border-color: #ffe066;
}

body[data-theme="banana"] .todo-item {
    background-color: #fffaed;
    border-color: #ffe066;
}

body[data-theme="banana"] .add-todo button {
    background-color: #ffd700;
    color: #5c4d00;
}

body[data-theme="banana"] .todo-item button {
    background-color: #ff9500;
    color: white;
}

body[data-theme="banana"] .clear-completed-btn {
    background-color: #ffb733;
    color: #5c4d00;
}

body[data-theme="banana"] .info-notice {
    background-color: rgba(255, 224, 102, 0.3);
    border: 1px solid rgba(255, 224, 102, 0.5);
}

body[data-theme="banana"] .info-close {
    color: #5c4d00;
}

body[data-theme="banana"] .view-toggle-btn,
body[data-theme="banana"] .scale-toggle-btn {
    background-color: #ffb733;
    color: #5c4d00;
}

body[data-theme="banana"] .profile-toggle {
    background-color: #ffb733;
    color: #5c4d00;
}

body[data-theme="banana"] .profile-menu {
    background-color: #fffaed;
    border-color: #ffe066;
}

body[data-theme="banana"] .profile-menu-item {
    color: #5c4d00;
}

body[data-theme="banana"] .todo-text a {
    color: #ff9500;
}

body[data-theme="banana"] .drag-handle {
    color: #5c4d00;
}

body[data-theme="banana"] .complete-all-btn {
    background-color: #66bb6a;
    color: white;
}

body[data-theme="banana"] .clear-all-btn {
    background-color: #ff6f00;
    color: white;
}

/* Theme: Ice */
body[data-theme="ice"] {
    background-color: #e3f2fd;
    color: #01579b;
}

body[data-theme="ice"] .add-todo input,
body[data-theme="ice"] .filters input,
body[data-theme="ice"] .filters select,
body[data-theme="ice"] .theme-select-dropdown,
body[data-theme="ice"] .theme-toggle,
body[data-theme="ice"] .todo-edit-input {
    background-color: #f1f8ff;
    color: #01579b;
    border-color: #81d4fa;
}

body[data-theme="ice"] .todo-item {
    background-color: #f1f8ff;
    border-color: #81d4fa;
}

body[data-theme="ice"] .add-todo button {
    background-color: #0288d1;
    color: white;
}

body[data-theme="ice"] .todo-item button {
    background-color: #0277bd;
    color: white;
}

body[data-theme="ice"] .clear-completed-btn {
    background-color: #4fc3f7;
    color: #01579b;
}

body[data-theme="ice"] .info-notice {
    background-color: rgba(129, 212, 250, 0.2);
    border: 1px solid rgba(129, 212, 250, 0.4);
}

body[data-theme="ice"] .info-close {
    color: #01579b;
}

body[data-theme="ice"] .view-toggle-btn,
body[data-theme="ice"] .scale-toggle-btn {
    background-color: #4fc3f7;
    color: #01579b;
}

body[data-theme="ice"] .profile-toggle {
    background-color: #4fc3f7;
    color: #01579b;
}

body[data-theme="ice"] .profile-menu {
    background-color: #f1f8ff;
    border-color: #81d4fa;
}

body[data-theme="ice"] .profile-menu-item {
    color: #01579b;
}

body[data-theme="ice"] .todo-text a {
    color: #0277bd;
}

body[data-theme="ice"] .drag-handle {
    color: #01579b;
}

body[data-theme="ice"] .complete-all-btn {
    background-color: #4caf50;
    color: white;
}

body[data-theme="ice"] .clear-all-btn {
    background-color: #f44336;
    color: white;
}

/* Theme: Forest */
body[data-theme="forest"] {
    background-color: #1b2a1b;
    color: #c8e6c9;
}

body[data-theme="forest"] .add-todo input,
body[data-theme="forest"] .filters input,
body[data-theme="forest"] .filters select,
body[data-theme="forest"] .theme-select-dropdown,
body[data-theme="forest"] .theme-toggle,
body[data-theme="forest"] .todo-edit-input {
    background-color: #2d4a2d;
    color: #c8e6c9;
    border-color: #4caf50;
}

body[data-theme="forest"] .todo-item {
    background-color: #2d4a2d;
    border-color: #4caf50;
}

body[data-theme="forest"] .add-todo button {
    background-color: #66bb6a;
    color: #1b2a1b;
}

body[data-theme="forest"] .todo-item button {
    background-color: #81c784;
    color: #1b2a1b;
}

body[data-theme="forest"] .clear-completed-btn {
    background-color: #a5d6a7;
    color: #1b2a1b;
}

body[data-theme="forest"] .info-notice {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

body[data-theme="forest"] .info-close {
    color: #c8e6c9;
}

body[data-theme="forest"] .view-toggle-btn,
body[data-theme="forest"] .scale-toggle-btn {
    background-color: #a5d6a7;
    color: #1b2a1b;
}

body[data-theme="forest"] .profile-toggle {
    background-color: #a5d6a7;
    color: #1b2a1b;
}

body[data-theme="forest"] .profile-menu {
    background-color: #2d4a2d;
    border-color: #4caf50;
}

body[data-theme="forest"] .profile-menu-item {
    color: #c8e6c9;
}

body[data-theme="forest"] .todo-text a {
    color: #a5d6a7;
}

body[data-theme="forest"] .drag-handle {
    color: #c8e6c9;
}

body[data-theme="forest"] .complete-all-btn {
    background-color: #66bb6a;
    color: #1b2a1b;
}

body[data-theme="forest"] .clear-all-btn {
    background-color: #e57373;
    color: white;
}

/* Age-based fading */
.todo-item[data-age="0"] { opacity: 1; }
.todo-item[data-age="1"] { opacity: 0.95; }
.todo-item[data-age="2"] { opacity: 0.9; }
.todo-item[data-age="3"] { opacity: 0.85; }
.todo-item[data-age="4"] { opacity: 0.8; }
.todo-item[data-age="5"] { opacity: 0.75; }
.todo-item[data-age="6"] { opacity: 0.7; }
.todo-item[data-age="7"] { opacity: 0.65; }
.todo-item[data-age="8"] { opacity: 0.6; }
.todo-item[data-age="9"] { opacity: 0.55; }
.todo-item[data-age="10-plus"] { opacity: 0.5; }

/* Markdown styling in todo text */
.todo-text a {
    text-decoration: underline;
    transition: opacity 0.2s;
}

.todo-text a:hover {
    opacity: 0.8;
}

.todo-text strong {
    font-weight: bold;
}

.todo-text em {
    font-style: italic;
}

#completed-count {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #1a1a2e;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s;
}

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

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #eee;
}

.modal-content p {
    margin-bottom: 20px;
    opacity: 0.8;
    color: #eee;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid #0f3460;
    background-color: #16213e;
    color: #eee;
    font-size: 1.1em;
    transition: border-color 0.3s;
}

.modal-content input[type="text"]:focus {
    outline: none;
    border-color: #e94560;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    cursor: pointer;
    user-select: none;
    color: #eee;
}

.modal-content button {
    width: 100%;
    padding: 12px 20px;
    background-color: #e94560;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.modal-content button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.modal-content button:active {
    transform: translateY(0);
}

/* Switch User Button */
.switch-user-btn {
    padding: 10px 16px;
    background-color: #533483;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.switch-user-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.switch-user-btn:active {
    transform: translateY(0);
}

/* Theme-specific modal styles */
body[data-theme="light"] .modal-content {
    background-color: white;
}

body[data-theme="light"] .modal-content h2,
body[data-theme="light"] .modal-content p,
body[data-theme="light"] .remember-me label {
    color: #333;
}

body[data-theme="light"] .modal-content input[type="text"] {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

body[data-theme="light"] .modal-content input[type="text"]:focus {
    border-color: #4a90e2;
}

body[data-theme="light"] .modal-content button {
    background-color: #4a90e2;
}

body[data-theme="light"] .switch-user-btn {
    background-color: #e74c3c;
}

body[data-theme="retro"] .modal-content {
    background-color: #1a1a1a;
    border: 2px solid #00ff00;
}

body[data-theme="retro"] .modal-content h2,
body[data-theme="retro"] .modal-content p,
body[data-theme="retro"] .remember-me label {
    color: #00ff00;
}

body[data-theme="retro"] .modal-content input[type="text"] {
    background-color: #0f0f0f;
    color: #00ff00;
    border-color: #00ff00;
}

body[data-theme="retro"] .modal-content button {
    background-color: #ff00ff;
    color: #0f0f0f;
}

body[data-theme="retro"] .switch-user-btn {
    background-color: #ff0000;
    color: #0f0f0f;
}

body[data-theme="banana"] .modal-content {
    background-color: #fffaed;
    border: 2px solid #ffe066;
}

body[data-theme="banana"] .modal-content h2,
body[data-theme="banana"] .modal-content p,
body[data-theme="banana"] .remember-me label {
    color: #5c4d00;
}

body[data-theme="banana"] .modal-content input[type="text"] {
    background-color: #fff9e6;
    color: #5c4d00;
    border-color: #ffe066;
}

body[data-theme="banana"] .modal-content button {
    background-color: #ffd700;
    color: #5c4d00;
}

body[data-theme="banana"] .switch-user-btn {
    background-color: #ff9500;
    color: white;
}

body[data-theme="ice"] .modal-content {
    background-color: #f1f8ff;
    border: 2px solid #81d4fa;
}

body[data-theme="ice"] .modal-content h2,
body[data-theme="ice"] .modal-content p,
body[data-theme="ice"] .remember-me label {
    color: #01579b;
}

body[data-theme="ice"] .modal-content input[type="text"] {
    background-color: #e3f2fd;
    color: #01579b;
    border-color: #81d4fa;
}

body[data-theme="ice"] .modal-content button {
    background-color: #0288d1;
}

body[data-theme="ice"] .switch-user-btn {
    background-color: #0277bd;
}

body[data-theme="forest"] .modal-content {
    background-color: #2d4a2d;
    border: 2px solid #4caf50;
}

body[data-theme="forest"] .modal-content h2,
body[data-theme="forest"] .modal-content p,
body[data-theme="forest"] .remember-me label {
    color: #c8e6c9;
}

body[data-theme="forest"] .modal-content input[type="text"] {
    background-color: #1b2a1b;
    color: #c8e6c9;
    border-color: #4caf50;
}

body[data-theme="forest"] .modal-content button {
    background-color: #66bb6a;
    color: #1b2a1b;
}

body[data-theme="forest"] .switch-user-btn {
    background-color: #81c784;
    color: #1b2a1b;
}
