/* ===== GLOBAL STYLES ===== */
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #0f0f0f;
    color: #f5f5f5;
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #111, #1f1f1f);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    position: relative;
}

/* ===== CRESCENT MOON LOGO WITH STARS ===== */
.moon-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
}

.crescent-moon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffeb99;
    position: relative;
    overflow: hidden;
}

.crescent-moon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 50px;
    background: #0f0f0f;
    border-radius: 50%;
    left: 10px;
    top: 0;
}

.star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 2s infinite alternate;
}

.star1 {
    top: -5px;
    left: 35px;
    animation-delay: 0s;
}

.star2 {
    top: 10px;
    left: 45px;
    animation-delay: 0.5s;
}

.star3 {
    top: 25px;
    left: 30px;
    animation-delay: 1s;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.6);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.6);
    }
}

/* ===== WRAPPER ===== */
.wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===== NEW TASK PANEL ===== */
.create-task-panel {
    background: #1b1b1b;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease;
}

.create-task-panel h2 {
    margin-top: 0;
    color: #ffb400;
    text-shadow: 0 0 8px rgba(255, 180, 0, 0.4);
}

.input-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.task-field {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background: #2a2a2a;
    color: #eee;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.task-field:focus {
    background: #333;
    box-shadow: 0 0 10px #ffb40088;
}

.create-btn {
    padding: 0.7rem 1.2rem;
    background: #ffb400;
    border: none;
    border-radius: 8px;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-btn:hover {
    background: #ffaa00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.5);
}

/* ===== BOARD COLUMNS ===== */
.board-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.column {
    background: #1a1a1a;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    animation: slideUp 1s ease;
}

.column-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
}

.pending {
    background: linear-gradient(135deg, #ff3c3c, #ff6a6a);
}

.active {
    background: linear-gradient(135deg, #0099ff, #33bbff);
}

.completed {
    background: linear-gradient(135deg, #00cc66, #33dd88);
}

.deleted {
    background: linear-gradient(135deg, #555, #777);
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.task-card {
    background: #2a2a2a;
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.task-card:hover {
    background: #333;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.empty-btn {
    margin-top: auto;
    padding: 0.6rem;
    background: #ff4d4d;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-btn:hover {
    background: #ff2d2d;
    transform: scale(1.05);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}