/* Custom CSS untuk aplikasi */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* SweetAlert2 button visibility overrides to prevent accidental hiding */
.swal2-container {
    z-index: 99999 !important;
}
.swal2-confirm, .swal2-cancel {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.swal2-actions {
    justify-content: center !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
}
.swal2-styled.swal2-cancel {
    background-color: #6b7280 !important;
    color: #fff !important;
}
.swal2-styled.swal2-confirm {
    background-color: #ef4444 !important;
    color: #fff !important;
}
.swal2-styled {
    padding: .75rem 1.25rem !important;
    font-size: 1.02rem !important;
    border-radius: .5rem !important;
}

/* Mobile: stack buttons vertically and make them full-width for easy tapping */
@media (max-width: 480px) {
    .swal2-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .swal2-styled {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
