
:root {
    --primary: #4A90E2;
    --business: #1A73E8; 
    --personal: #E94057; 
    --light: #F8F9FA; 
    --grey: #6C757D;
    --dark: #343A40;
    --danger: #FF6B6B;
    --app-bg: rgba(255, 255, 255, 0.25);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --business-glow: 0px 0px 8px rgba(26, 115, 232, 0.5);
    --personal-glow: 0px 0px 8px rgba(233, 64, 87, 0.5);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'montserrat', sans-serif;
}

input:not([type="radio"]):not([type="checkbox"]), button {
    appearance: none;
    border: none;
    outline: none;
    background: none;
    cursor: initial;
}
body {
    color: var(--dark);
    min-height: 100vh;
    padding: 2rem 0;
    background: linear-gradient(135deg, #A8C0FF 0%, #37B9F1 100%); 
    display: flex; 
    justify-content: center;
    align-items: center;
}

main.app {
    max-width: 500px;
    margin: 0 auto;
    background: var(--app-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    padding: 2rem;
}

section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0;
    padding-right: 0;
}

h3 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary); 
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h4 {
    color: var(--grey);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.greeting .title {
    display: flex;
    align-items: center;
}

.greeting .title input {
    margin-left: 0.5rem;
    flex: 1 1 0%;
    min-width: 0;
    border-bottom: 3px solid var(--primary);
    padding: 0.25rem 0.5rem;
    font-family: 'Fira Sans', sans-serif; 
    background: none;
}

.greeting .title, 
.greeting .title input {
    color: var(--dark);
    font-size: 1.8rem;
    font-weight: 700;
}

.create-todo input[type="text"],
.create-todo input[type="date"],
.create-todo input[type="time"] {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
    color: var(--dark);
    background-color: rgba(255, 255, 255, 0.8); 
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.create-todo input:focus {
    box-shadow: 0 0 0 3px var(--primary);
}
.create-todo .datetime-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.create-todo .options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.create-todo .options label {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-radius: 1rem;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

input[type="radio"]:checked + .bubble ~ div {
    font-weight: 700;
}

.bubble {
    border: 3px solid var(--business);
    transition: all 0.2s ease;
}

.bubble.personal {
    border-color: var(--personal);
}

.create-todo input[type="submit"] {
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--business), var(--primary)); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

.create-todo input[type="submit"]:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}
.todo-list .list {
    margin: 1rem 0;
}

.todo-list .todo-item {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

.todo-item .bubble.business {
    border-color: var(--business);
}
.todo-item .bubble.personal {
    border-color: var(--personal);
}
.todo-item:has(input:checked) {
    border-left-color: var(--grey);
}

.todo-item:not(.done):has(.bubble.personal) {
    border-left-color: var(--personal);
}
.todo-item:not(.done):has(.bubble.business) {
    border-left-color: var(--business);
}

.todo-item.done {
    opacity: 0.6;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    border-left-color: var(--grey);
}

.todo-item .todo-content input[type="text"]:not([readonly]) {
    border-bottom: 2px dashed var(--primary);
}
.todo-item .todo-content .due-info {
    font-size: 0.8rem;
    color: var(--grey);
    margin-top: 0.25rem;
    display: flex;
    gap: 0.5rem;
}

.todo-item .actions button {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.todo-item .actions .edit {
    background-color: var(--primary);
}

.todo-item .actions .delete {
    background-color: var(--danger);
}