/* ============================================= WHOLE BODY ===================================================== */
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #7b5ed7, #a557c7, #d76bb3);
    overflow-x: hidden;
}

/* ========================================================== NAVBAR ========================================================== */

#search-bar {
    background-color: #6655A5;
    border: #bdbace2b 1px solid;
    min-width: 250px;
}

#search-bar input:focus {
    outline: none;
}

#search-bar input::placeholder {
    color: #e2e2e2;
}

.hover {
    transition: 0.3s;
}

.hover:hover {
    background-color: #ccbeff5c !important;
}

#create-btn {
    background-color: #6655A5;
}

#pro-btn {
    background: linear-gradient(to right, #8E44AD, #2962FF);
    transition: 0.3s;
}

#pro-btn:hover {
    background: linear-gradient(to right, #8d44adc2, #2962ffa4);
}

@media (max-width: 991px) {
    #search-bar {
        width: 100%;
        margin-bottom: 10px;
    }
}
@media (max-width: 768px) {
    .trello-header .container-fluid {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .trello-header h5 {
        font-size: 1rem;
    }

    .icon-circle {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
/* ================================================ LISTS ==================================================== */

.board {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    align-items: flex-start;
    gap: 15px;
    margin: 20px;
    padding-bottom: 20px;
}

.board::-webkit-scrollbar {
    height: 10px;
}
.board::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

.list {
    background: #f8f79e;
    border-radius: 10px;
    padding: 15px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.list.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.list-title {
    font-weight: bold;
    outline: none;
}

.delete-list-btn {
    opacity: 0.5;
    transition: 0.3s;
}

.delete-list-btn:hover {
    opacity: 1;
    background-color: #ffcccc;
    border-radius: 5px;
}

.add-list {
    width: 280px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.add-list:hover {
    background: rgba(255, 255, 255, 0.4);
}

.card-input {
    background: white;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: grab;
}

.card-input:active {
    cursor: grabbing;
}

.card-input.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

.card-input input {
    border: none;
    outline: none;
    width: 100%;
}

.card-input input[readonly] {
    background: transparent;
    cursor: pointer;
}

.btn-sm {
    font-size: 12px;
    padding: 2px 6px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .list, .add-list {
        width: 85vw; 
    }
}