:root {
    --bg-color: #e0e5ec;
    --text-main: #4d4d4d;
    --text-light: #a3b1c6;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --primary-gradient: linear-gradient(145deg, #6c5ce7, #a29bfe);
    --accent-color: #6c5ce7;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.neumorphic-text {
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 600;
    padding-left: 10px;
}

/* --- Cards & inputs (Outer Shadow) --- */
.neumorphic-card {
    background: var(--bg-color);
    border-radius: 30px;
    box-shadow: 9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    background: var(--bg-color);
    /* Mimic "rectangle with curved edges" for headings as requested */
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
    display: inline-block;
    align-self: center;
}

/* --- Inputs (Inner Shadow) --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.neumorphic-inset {
    width: 100%;
    border: none;
    outline: none;
    background: var(--bg-color);
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: inset 6px 6px 10px var(--shadow-dark),
        inset -6px -6px 10px var(--shadow-light);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.neumorphic-inset:focus {
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

/* --- Button --- */
.neumorphic-btn {
    margin-top: 10px;
    border: none;
    outline: none;
    background: var(--bg-color);
    /* Base for shape */
    color: white;
    /* Text color needs contrast? No, wait */
    /* Let's make the button vibrant */
    background: var(--bg-color);
    color: var(--accent-color);
    font-weight: 700;
    padding: 15px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    font-family: var(--font-family);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neumorphic-btn:active {
    box-shadow: inset 6px 6px 10px var(--shadow-dark),
        inset -6px -6px 10px var(--shadow-light);
    transform: scale(0.98);
}

.neumorphic-btn:hover {
    color: #5849c2;
}

/* --- Task List Items --- */
/* --- Task Columns --- */
.tasks-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .tasks-columns {
        grid-template-columns: 1fr;
    }
}

.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tasks-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.task-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    border-left: 5px solid var(--accent-color);
}

.task-card.completed {
    border-left: 5px solid #00b894;
    opacity: 0.8;
}

.task-card.completed .task-subject,
.task-card.completed .task-body {
    text-decoration: line-through;
    color: #a3b1c6;
}

.task-card:hover {
    transform: translateY(-5px);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

.task-subject {
    font-weight: 800;
    font-size: 1.2rem;
    color: #333;
}

.task-time {
    font-size: 0.85rem;
    color: #666;
    background: #e0e5ec;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    padding: 5px 10px;
    border-radius: 10px;
}

.task-body p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.task-label {
    font-weight: 600;
    color: var(--accent-color);
}

.task-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.edit-btn {
    background: #e0e5ec;
    color: #4da6ff;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    box-shadow: 5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    margin-right: 10px;
}

.edit-btn:hover {
    color: #2980b9;
}

.edit-btn:active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.delete-btn {
    background: #e0e5ec;
    color: #ff4757;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    box-shadow: 5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.delete-btn:hover {
    color: #ff6b81;
}

.delete-btn:active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

/* Animations */
@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.task-card {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}