* {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
        "Open Sans", "Helvetica Neue", sans-serif;
}
body {
    background-color: #0f172a;
    color: white;
}
/* Custom scrollbar for table body */
tbody::-webkit-scrollbar {
    width: 8px;
}
tbody::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 4px;
}

/* Mobile table reflow */
@media (max-width: 768px) {
    table,
    thead,
    tbody,
    th,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        background-color: #020617;
        border: 1px solid #334155;
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }

    td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        color: #94a3b8;
        font-weight: 500;
        text-transform: uppercase;
    }
}

#modal.show {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.toast {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in forwards;
    animation-delay: 0s, 2.7s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* Mobile-friendly toast positioning */
@media (max-width: 640px) {
    #toast-container {
        top: 1rem;
        bottom: auto;
        right: 50%;
        left: auto;
        transform: translateX(50%);
        align-items: center;
    }

    .toast {
        min-width: 90vw;
        text-align: center;
    }
}

/* Drag-and-drop styles */
tr.dragging {
    opacity: 0.4;
}

tr.drag-over {
    outline: 2px dashed #6366f1;
    outline-offset: -4px;
}
