public/assets/styles.css
:root {
    /* Light theme variables */
    --primary: #2196F3;
    --primary-hover: #1976D2;
    --background: #f5f5f5;
    --container: white;
    --text: #333;
    --border: #ccc;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
    --success-status-bg: rgba(37, 99, 235, 0.6);
    --danger-status-bg:rgba(220, 38, 38, 0.6);
}

[data-theme="dark"] {
    --background: #1a1a1a;
    --container: #2d2d2d;
    --text: white;
    --border: #404040;
    --shadow: 0 2px 4px rgba(0,0,0,0.2);
    --success-status-bg: rgba(96, 165, 250, 0.5);
    --danger-status-bg:rgba(220, 38, 38, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

.app {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

header {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--text);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition);
}

button:hover {
    background: var(--primary-hover);
}

#themeToggle {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    font-size: 1.5rem;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text);
    border-radius: 50%;
}

#themeToggle:hover {
    background: rgba(255,255,255,0.1);
}

#themeToggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.clear-btn {
    background: transparent;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff4444;
}

.clear-btn svg {
    stroke: #ff4444;
    stroke-width: 2;
    fill: none;
}

.clear-btn:hover {
    background: rgba(255,68,68,0.1);
}

.todo-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

input {
    flex: 1;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--container);
    color: var(--text);
    transition: border-color var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.todo-item {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--container);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    width: 100%;
    max-width: 500px;
    cursor: default;
    position: relative;
}

.todo-item:not(.completed) {
    cursor: grab;
}

.todo-item.dragging {
    cursor: grabbing;
    opacity: 0.9;
    box-shadow: var(--shadow), 0 8px 16px rgba(0,0,0,0.1);
    transform: scale(1.02) translateY(-2px);
}

.todo-item:not(.completed):hover {
    transform: translateY(-2px);
}

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

.checkbox-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
}

.todo-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    justify-self: start;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.todo-item span {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    text-align: left;
    justify-self: start;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color var(--transition);
}

.todo-item span:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .todo-item span:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.todo-item .edit-input {
    width: 100%;
    padding: 0.25rem;
    margin: 0;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: var(--container);
    color: var(--text);
    font-size: inherit;
    font-family: inherit;
}

.todo-item a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity var(--transition);
}

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

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

.delete-btn {
    margin-left: auto;
    background: transparent;
    color: #ff4444;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ff4444;
    justify-self: end;
}

.delete-btn:hover {
    background: rgba(255,68,68,0.1);
}

/* .toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--container);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 2000;
} */

.toast-container {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    max-width: 300px;
    box-sizing: border-box;
    word-wrap: break-word;
    font-size: 0.875rem;
    cursor: pointer;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: var(--success-status-bg);
}

.toast.error {
    background-color: var(--danger-status-bg);
}


.todo-divider {
    width: 100%;
    max-width: 500px;
    text-align: left;
    padding: 1rem 0;
    margin: 1rem 0;
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 480px) {
    .app {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .todo-form {
        flex-direction: column;
        align-items: center;
    }
    
    .button-group {
        width: 100%;
        max-width: 400px;
    }
    
    .button-group button[type="submit"] {
        flex: 1;
    }
}

/* PIN Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-content {
    background: var(--container);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 90%;
    width: 400px;
    text-align: center;
}

.modal h2 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.pin-description {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pin-input-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.pin-input-container input.pin-input {
    width: 35px;
    height: 45px;
    text-align: center;
    font-size: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--container);
    color: var(--text);
    transition: all var(--transition);
    flex: none;
    max-width: 30px;
    padding: 0;
}

.pin-input-container input.pin-input:focus {
    outline: none;
    border-color: var(--primary);
}

.pin-input-container input.pin-input.has-value {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

[data-theme="dark"] .pin-input-container input.pin-input.has-value {
    color: white;
}

[data-theme="light"] .pin-input-container input.pin-input.has-value {
    color: white;
}

.pin-error {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

.pin-error[aria-hidden="false"] {
    display: block;
}

/* Remove logo styles as they're no longer needed */

.list-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 1rem;
}

.list-buttons {
    display: flex;
    gap: 0.25rem;
}

.icon-btn {
    background: transparent;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.icon-btn svg {
    stroke: var(--text);
    stroke-width: 2;
    fill: none;
}

.icon-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--primary);
}

.icon-btn:hover svg {
    stroke: var(--primary);
}

.list-selector-container {
    position: relative;
    min-width: 150px;
}

.list-selector-container::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text);
    pointer-events: none;
    z-index: 2;
}

#listSelector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--container);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    padding-right: 24px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    position: relative;
    z-index: 1;
    text-align: left;
}

#listSelector:focus {
    outline: none;
    border-color: var(--primary);
}

/* Hide native select dropdown in Firefox */
#listSelector:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--text);
}

/* Hide native select dropdown in IE/Edge */
#listSelector::-ms-expand {
    display: none;
}

#listSelector option {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-select {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--container);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--text);
    transition: background-color var(--transition);
    text-align: left;
}

.list-item:hover {
    background: rgba(33, 150, 243, 0.1);
}

.list-item .delete-btn {
    opacity: 0;
    transition: opacity var(--transition);
    color: #ff4444;
    background: none;
    border: none;
    padding: 0.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.list-item:hover .delete-btn {
    opacity: 1;
}

.list-item .delete-btn:hover {
    color: #ff6666;
}

.list-item .delete-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.list-item.list-1 .delete-btn {
    display: none;
}

@media (max-width: 600px) {
    .list-controls {
        position: static;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    #themeToggle {
        position: static;
        margin-left: auto;
    }
}

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

.login-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box {
    background: var(--container);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.login-page #themeToggle {
    position: absolute;
    top: 0;
    right: 0;
}

.login-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.login-page h2 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-box {
        padding: 1.5rem;
    }
    
    .login-page h1 {
        font-size: 2rem;
    }
}

/* PIN Status Styles */
.pin-status {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.attempts-remaining {
    color: #ff4444;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.attempts-remaining[aria-hidden="false"] {
    display: block;
}

.lockout-notice {
    color: #ff4444;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ff4444;
    display: none;
}

.lockout-notice[aria-hidden="false"] {
    display: block;
}

.pin-error {
    color: #ff4444;
    font-size: 0.9rem;
    display: none;
}

.pin-error[aria-hidden="false"] {
    display: block;
}

.active-todos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

/* Add a visual indicator for drop target */
.todo-item:not(.completed):not(.dragging)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.todo-item:not(.completed):not(.dragging).drop-above::after {
    top: -1px;
    opacity: 1;
}

.todo-item:not(.completed):not(.dragging).drop-below::after {
    bottom: -1px;
    opacity: 1;
}

/* Add touch-friendly tap target on mobile */
@media (max-width: 768px) {
    .checkbox-wrapper {
        padding: 0.75rem;
        margin: -0.75rem;
    }
} 