* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'font';
    src: url('fonts/spec.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'font1';
    src: url('fonts/spec1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: linear-gradient(
            -45deg,
            #0f172a,
            #1e293b,
            #2e415e,
            #2b5d88
    );

    background-size: 400% 400%;

    animation: gradientMove 15s ease infinite;

    color: #c0efff;
    font-family: 'font1', sans-serif;
}

.stars {
    position: fixed;
    inset: 0;

    background-image:
            radial-gradient(2px 2px at 20px 30px, white, transparent),
            radial-gradient(2px 2px at 40px 70px, white, transparent),
            radial-gradient(1px 1px at 90px 40px, white, transparent),
            radial-gradient(2px 2px at 160px 120px, white, transparent),
            radial-gradient(1px 1px at 200px 80px, white, transparent);

    background-size: 300px 300px;

    opacity: 0.25;

    z-index: -2;

    animation: starsMove 60s linear infinite;
}

.cursor-glow {
    position: fixed;

    width: 400px;
    height: 400px;

    background: radial-gradient(circle, rgba(0, 149, 255, 0.2) 0%, rgba(0, 149, 255, 0) 70%);

    border-radius: 50%;

    pointer-events: none;

    z-index: -1;

    transform: translate(-50%, -50%);

    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-glow.active {
    width: 150px;
    height: 150px;

    opacity: 0.8;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes starsMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1000px 1000px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dotBounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.top-nav {
    display: flex;
    justify-content: center;

    padding: 20px;
}

.nav-list {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    list-style: none;

    margin: 0;
    padding: 12px 24px;

    border-radius: 18px;

    font-family: 'font', sans-serif;
    font-size: 16px;

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

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

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

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.brand-name {
    color: #87fbea;

    font-size: 18px;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.brand-dot {
    color: #87fbea;
}

.nav-list a {
    position: relative;

    text-decoration: none;

    color: #c0efff;

    font-size: 16px;

    transition: 0.3s ease;
}

.nav-list a::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: #87fbea;

    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.content-wrapper {
    display: flex;
    justify-content: center;

    min-height: 70vh;

    padding: 0 20px 40px;
}

.task-panel {
    width: 100%;
    max-width: 700px;

    padding: 30px;

    border-radius: 24px;

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

    color: #c0efff;

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

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

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

    box-shadow: 0 20px 40px rgba(0,0,0,0.2);

    animation: fadeIn 0.5s;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.task-panel h1 {
    margin: 0;

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

    font-size: 28px;

    color: #ffffff;

    text-shadow: 0 0 20px rgba(135,251,234,0.35);
}

.task-list {
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    padding: 18px 20px;

    border-radius: 18px;

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

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

    transition: 0.3s ease;
}

.task-card:hover {
    background: rgba(255,255,255,0.08);

    transform: translateY(-2px);
}

.task-card.done {
    opacity: 0.6;
}

.task-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 8px;
}

.task-title {
    margin: 0;

    font-size: 17px;

    color: #e6faff;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;

    font-size: 12px;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    padding: 6px 12px;

    border-radius: 12px;
}

.task-status .dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    animation: dotBounce 2s ease infinite;
}

.task-status.done {
    color: #9fe870;

    background: rgba(159,232,112,0.08);

    border: 1px solid rgba(159,232,112,0.2);
}

.task-status.done .dot {
    background: #9fe870;

    box-shadow: 0 0 8px #9fe870;
}

.task-status.pending {
    color: #ffb4b4;

    background: rgba(255,90,90,0.08);

    border: 1px solid rgba(255,120,120,0.25);
}

.task-status.pending .dot {
    background: #ffb4b4;

    box-shadow: 0 0 8px #ffb4b4;
}

.task-desc {
    margin: 0 0 14px;

    font-size: 14px;

    line-height: 1.6;

    color: #d6f4ff;

    word-break: break-word;
}

.task-meta {
    margin: 0 0 14px;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: rgba(192,239,255,0.4);
}

.task-actions {
    display: flex;
    gap: 10px;

    flex-wrap: wrap;
}

.btn {
    display: inline-block;

    text-decoration: none;

    cursor: pointer;

    border: none;

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

    font-size: 14px;

    padding: 10px 16px;

    border-radius: 12px;

    transition: 0.3s ease;
}

.btn-primary {
    background: #87fbea;

    color: #0f172a;

    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow: 0 0 20px rgba(135,251,234,0.4);
}

.btn-transparent {
    background: rgba(255,255,255,0.06);

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

    color: #c0efff;
}

.btn-transparent:hover {
    background: rgba(255,255,255,0.12);

    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(255,90,90,0.08);

    border: 1px solid rgba(255,120,120,0.25);

    color: #ffb4b4;
}

.btn-danger:hover {
    background: rgba(255,90,90,0.15);

    transform: translateY(-2px);
}

.empty-state {
    padding: 40px 20px;

    text-align: center;

    border-radius: 18px;

    border: 1px dashed rgba(255,255,255,0.12);

    color: rgba(192,239,255,0.55);
}

.task-form {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 25px;
}

.task-form label {
    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: rgba(192,239,255,0.55);

    margin-top: 10px;
}

.task-form input[type="text"],
.task-form textarea {
    width: 100%;

    padding: 12px 16px;

    border-radius: 14px;

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

    font-size: 15px;

    color: #c0efff;

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

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

    outline: none;

    transition: 0.3s ease;
}

.task-form input[type="text"]:focus,
.task-form textarea:focus {
    border-color: rgba(135,251,234,0.5);

    box-shadow: 0 0 15px rgba(135,251,234,0.15);
}

.task-form textarea {
    min-height: 120px;

    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;

    flex-wrap: wrap;

    margin-top: 20px;
}

footer {
    padding: 25px;

    text-align: center;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: rgba(192,239,255,0.4);
}

footer a {
    color: #87fbea;

    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.toast {
    position: fixed;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%) translateY(20px);

    padding: 12px 20px;

    border-radius: 14px;

    font-size: 14px;

    color: #e6faff;

    background: rgba(15,23,42,0.9);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(135,251,234,0.4);

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    opacity: 0;

    pointer-events: none;

    z-index: 1000;

    transition: 0.3s ease;
}

.toast.show {
    opacity: 1;

    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1100px) {
    .task-panel {
        width: 90%;
        max-width: 700px;
    }
}

@media (max-width: 480px) {
    .task-panel {
        padding: 20px;
    }

    .task-panel h1 {
        font-size: 22px;
    }

    .panel-head {
        flex-direction: column;

        align-items: flex-start;
    }
}
