@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================================
RESET
================================ */

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

html {
scroll-behavior: smooth;
}

body {
min-height: 100vh;


font-family: 'Inter', sans-serif;

color: #f8fafc;

background:
    radial-gradient(
        circle at 15% 20%,
        rgba(59, 130, 246, 0.18),
        transparent 30%
    ),
    radial-gradient(
        circle at 85% 80%,
        rgba(139, 92, 246, 0.16),
        transparent 30%
    ),
    #070b14;

display: flex;
justify-content: center;
align-items: center;

padding: 40px 20px;

overflow-x: hidden;


}

/* ================================
BACKGROUND EFFECTS
================================ */

body::before {
content: "";


position: fixed;

width: 500px;
height: 500px;

border-radius: 50%;

background: rgba(37, 99, 235, 0.08);

filter: blur(100px);

top: -200px;
right: -150px;

pointer-events: none;


}

body::after {
content: "";

position: fixed;

width: 400px;
height: 400px;

border-radius: 50%;

background: rgba(124, 58, 237, 0.08);

filter: blur(100px);

bottom: -180px;
left: -150px;

pointer-events: none;

}

/* ================================
MAIN APP
================================ */

.app {
width: 100%;
max-width: 720px;

position: relative;

z-index: 2;

}

/* ================================
TODO CARD
================================ */

.todo-card {
width: 100%;

padding: 34px;

border: 1px solid rgba(255, 255, 255, 0.08);

border-radius: 28px;

background:
    linear-gradient(
        145deg,
        rgba(18, 25, 40, 0.94),
        rgba(10, 15, 27, 0.96)
    );

box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

backdrop-filter: blur(20px);

transition: transform 0.3s ease;

}

/* ================================
HEADER
================================ */

.todo-header {
display: flex;


justify-content: space-between;
align-items: flex-start;

gap: 20px;

margin-bottom: 30px;


}

.eyebrow {
color: #60a5fa;


font-size: 11px;

font-weight: 800;

letter-spacing: 2px;

margin-bottom: 8px;


}

.todo-header h1 {
font-size: clamp(32px, 6vw, 46px);


line-height: 1;

letter-spacing: -2px;

font-weight: 800;


}

.todo-header h1 span {
color: #60a5fa;
}

.subtitle {
color: #94a3b8;


font-size: 14px;

margin-top: 10px;


}

/* ================================
TASK COUNT
================================ */

.task-count {
min-width: 75px;


height: 75px;

display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

border-radius: 20px;

background: rgba(59, 130, 246, 0.08);

border: 1px solid rgba(96, 165, 250, 0.15);


}

.task-count span {
color: #60a5fa;


font-size: 25px;

font-weight: 800;


}

.task-count small {
color: #64748b;


font-size: 10px;

text-transform: uppercase;

letter-spacing: 1px;


}

/* ================================
INPUT AREA
================================ */

.input-area {
display: flex;


gap: 12px;

margin-bottom: 25px;


}

#taskInput {
flex: 1;


min-width: 0;

height: 58px;

padding: 0 18px;

border: 1px solid rgba(255, 255, 255, 0.08);

border-radius: 16px;

outline: none;

background: rgba(255, 255, 255, 0.035);

color: #f8fafc;

font-family: inherit;

font-size: 14px;

transition:
    border 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;


}

#taskInput::placeholder {
color: #64748b;
}

#taskInput:focus {
border-color: rgba(96, 165, 250, 0.65);


background: rgba(255, 255, 255, 0.055);

box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.08);


}

/* ================================
ADD BUTTON
================================ */

#addTask {
height: 58px;


padding: 0 22px;

border: none;

border-radius: 16px;

background: linear-gradient(
    135deg,
    #3b82f6,
    #6366f1
);

color: white;

font-family: inherit;

font-size: 14px;

font-weight: 700;

cursor: pointer;

display: flex;

align-items: center;

justify-content: center;

gap: 7px;

box-shadow:
    0 10px 25px rgba(59, 130, 246, 0.2);

transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;


}

#addTask span {
font-size: 20px;


line-height: 0;


}

#addTask:hover {
transform: translateY(-2px);


box-shadow:
    0 15px 30px rgba(59, 130, 246, 0.3);

filter: brightness(1.08);


}

#addTask:active {
transform: translateY(0);
}

/* ================================
FILTERS
================================ */

.filters {
display: flex;


gap: 8px;

padding-bottom: 15px;

border-bottom: 1px solid rgba(255, 255, 255, 0.06);


}

.filter {
border: none;


background: transparent;

color: #64748b;

padding: 8px 13px;

border-radius: 9px;

font-family: inherit;

font-size: 12px;

font-weight: 600;

cursor: pointer;

transition: 0.2s ease;


}

.filter:hover {
color: #cbd5e1;


background: rgba(255, 255, 255, 0.04);


}

.filter.active {
color: #60a5fa;


background: rgba(59, 130, 246, 0.1);


}

/* ================================
TASK CONTAINER
================================ */

.task-container {
min-height: 280px;


padding: 15px 0;


}

#taskList {
list-style: none;


display: flex;

flex-direction: column;

gap: 10px;


}

/* ================================
TASK ITEM
================================ */

.task-item {
display: flex;


align-items: center;

gap: 13px;

padding: 15px;

border-radius: 15px;

border: 1px solid rgba(255, 255, 255, 0.055);

background: rgba(255, 255, 255, 0.025);

transition:
    transform 0.2s ease,
    background 0.2s ease,
    border 0.2s ease;


}

.task-item:hover {
transform: translateX(4px);


background: rgba(255, 255, 255, 0.045);

border-color: rgba(96, 165, 250, 0.15);


}

/* ================================
CHECKBOX
================================ */

.task-checkbox {
width: 21px;


height: 21px;

border: 1.5px solid #475569;

border-radius: 7px;

flex-shrink: 0;

cursor: pointer;

transition: 0.2s ease;


}

.task-checkbox:hover {
border-color: #60a5fa;


box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.08);


}

/* ================================
TASK TEXT
================================ */

.task-text {
flex: 1;


min-width: 0;

color: #e2e8f0;

font-size: 14px;

line-height: 1.5;

word-break: break-word;


}

/* COMPLETED TASK */

.task-item.completed .task-checkbox {
border-color: #60a5fa;


background: #3b82f6;

position: relative;


}

.task-item.completed .task-checkbox::after {
content: "✓";


position: absolute;

color: white;

font-size: 13px;

font-weight: 800;

left: 4px;

top: -1px;


}

.task-item.completed .task-text {
color: #64748b;


text-decoration: line-through;

text-decoration-color: #475569;


}

/* ================================
DELETE BUTTON
================================ */

.delete-task {
width: 35px;


height: 35px;

border: none;

border-radius: 10px;

background: transparent;

color: #64748b;

cursor: pointer;

font-size: 16px;

display: flex;

align-items: center;

justify-content: center;

transition: 0.2s ease;


}

.delete-task:hover {
color: #f87171;


background: rgba(248, 113, 113, 0.08);


}

/* ================================
EMPTY STATE
================================ */

.empty-state {
min-height: 250px;


display: flex;

flex-direction: column;

align-items: center;

justify-content: center;

text-align: center;

padding: 30px;


}

.empty-icon {
width: 65px;


height: 65px;

display: flex;

align-items: center;

justify-content: center;

margin-bottom: 18px;

border-radius: 20px;

color: #60a5fa;

font-size: 28px;

font-weight: 700;

background: rgba(59, 130, 246, 0.08);

border: 1px solid rgba(96, 165, 250, 0.12);


}

.empty-state h2 {
font-size: 17px;


margin-bottom: 7px;


}

.empty-state p {
max-width: 300px;


color: #64748b;

font-size: 13px;

line-height: 1.6;


}

/* ================================
FOOTER
================================ */

.todo-footer {
display: flex;


justify-content: space-between;

align-items: center;

padding-top: 18px;

border-top: 1px solid rgba(255, 255, 255, 0.06);

color: #64748b;

font-size: 12px;


}

.todo-footer span {
color: #94a3b8;


font-weight: 700;


}

#clearCompleted {
border: none;


background: transparent;

color: #64748b;

font-family: inherit;

font-size: 12px;

cursor: pointer;

transition: color 0.2s ease;


}

#clearCompleted:hover {
color: #f87171;
}

/* ================================
CUSTOM SCROLLBAR
================================ */

::-webkit-scrollbar {
width: 8px;
}

::-webkit-scrollbar-track {
background: #070b14;
}

::-webkit-scrollbar-thumb {
background: #263449;


border-radius: 20px;

border: 2px solid #070b14;


}

::-webkit-scrollbar-thumb:hover {
background: #3b82f6;
}

/* ================================
MOBILE
================================ */

@media (max-width: 600px) {


body {
    padding: 15px;
    align-items: flex-start;
    padding-top: 25px;
}

.todo-card {
    padding: 22px 18px;

    border-radius: 22px;
}

.todo-header {
    margin-bottom: 25px;
}

.task-count {
    min-width: 58px;

    height: 58px;

    border-radius: 15px;
}

.task-count span {
    font-size: 20px;
}

.subtitle {
    font-size: 12px;
}

.input-area {
    flex-direction: column;
}

#taskInput,
#addTask {
    width: 100%;
}

.filters {
    overflow-x: auto;

    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.task-item {
    padding: 13px;
}

.task-text {
    font-size: 13px;
}

.todo-footer {
    gap: 15px;
}


}

/* ================================
VERY SMALL SCREENS
================================ */

@media (max-width: 380px) {


.todo-header h1 {
    font-size: 30px;
}

.task-count {
    display: none;
}

.todo-footer {
    flex-direction: column;

    align-items: flex-start;
}


}
