﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNz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cnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Target all scrollable elements in the application */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #888; /* This color is now fully opaque */
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 4px;
}

/*#toast-container > .toast-success {
    background-color: #6c757d !important;*/ /* Green background */
/*color: white;*/ /* White text */
/*}

#toast-container > .toast-error {
    background-color: #6c757d !important;*/ /* Red background */
/*color: white;*/ /* White text */
/*}*/

/* ============================================================================
   Custom SweetAlert2 Styles to Match Site Theme
   ============================================================================ */

/* Main popup container */
.dy-custom-swal-popup {
    background-color: #222 !important;
    border: 2px solid #F5AE18 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    padding: 2rem !important;
}

/* Title styling */
.dy-custom-swal-title {
    font-family: 'Oswald', sans-serif !important;
    color: #F5AE18 !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 1rem !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Content text styling */
.dy-custom-swal-content {
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
}

/* Actions container */
.dy-custom-swal-actions {
    margin-top: 2rem !important;
    gap: 1rem !important;
}

/* Target SweetAlert2's default button classes directly */
.swal2-confirm,
.swal2-confirm.swal2-styled,
.dy-custom-swal-confirm-btn,
.dy-custom-swal-popup .swal2-actions .swal2-confirm {
    background-color: #F5AE18 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.75rem 2rem !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(245, 174, 24, 0.3) !important;
    min-width: 120px !important;
}

    .swal2-confirm:hover,
    .swal2-confirm.swal2-styled:hover,
    .dy-custom-swal-confirm-btn:hover,
    .dy-custom-swal-popup .swal2-actions .swal2-confirm:hover {
        background-color: #cc8c14 !important;
        color: #fff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(245, 174, 24, 0.4) !important;
    }

    .swal2-confirm:focus,
    .swal2-confirm.swal2-styled:focus,
    .dy-custom-swal-confirm-btn:focus,
    .dy-custom-swal-popup .swal2-actions .swal2-confirm:focus {
        outline: 2px solid #F5AE18 !important;
        outline-offset: 2px !important;
        box-shadow: 0 4px 12px rgba(245, 174, 24, 0.4) !important;
    }

/* Target SweetAlert2's default cancel button classes */
.swal2-cancel,
.swal2-cancel.swal2-styled,
.dy-custom-swal-cancel-btn,
.dy-custom-swal-popup .swal2-actions .swal2-cancel {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #666 !important;
    border-radius: 4px !important;
    padding: 0.75rem 2rem !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
}

    .swal2-cancel:hover,
    .swal2-cancel.swal2-styled:hover,
    .dy-custom-swal-cancel-btn:hover,
    .dy-custom-swal-popup .swal2-actions .swal2-cancel:hover {
        background-color: #666 !important;
        border-color: #999 !important;
        transform: translateY(-1px) !important;
    }

    .swal2-cancel:focus,
    .swal2-cancel.swal2-styled:focus,
    .dy-custom-swal-cancel-btn:focus,
    .dy-custom-swal-popup .swal2-actions .swal2-cancel:focus {
        outline: 2px solid #F5AE18 !important;
        outline-offset: 2px !important;
    }

/* Danger button (for delete confirmations) */
.dy-danger-btn,
.dy-custom-swal-popup .dy-danger-btn {
    background-color: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
}

    .dy-danger-btn:hover,
    .dy-custom-swal-popup .dy-danger-btn:hover {
        background-color: #c82333 !important;
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
    }

/* Icon styling */
.dy-custom-swal-icon {
    border-color: #F5AE18 !important;
    color: #F5AE18 !important;
}

    /* Success icon */
    .dy-custom-swal-icon.swal2-success {
        border-color: #28a745 !important;
    }

        .dy-custom-swal-icon.swal2-success .swal2-success-ring {
            border-color: #28a745 !important;
        }

        .dy-custom-swal-icon.swal2-success .swal2-success-line-tip,
        .dy-custom-swal-icon.swal2-success .swal2-success-line-long {
            background-color: #28a745 !important;
        }

    /* Error icon */
    .dy-custom-swal-icon.swal2-error {
        border-color: #dc3545 !important;
    }

        .dy-custom-swal-icon.swal2-error .swal2-x-mark-line-left,
        .dy-custom-swal-icon.swal2-error .swal2-x-mark-line-right {
            background-color: #dc3545 !important;
        }

    /* Warning icon */
    .dy-custom-swal-icon.swal2-warning {
        border-color: #F5AE18 !important;
        color: #F5AE18 !important;
    }

/* Close button styling */
.dy-custom-swal-popup .swal2-close {
    color: #F5AE18 !important;
    font-size: 2rem !important;
    transition: all 0.3s ease !important;
}

    .dy-custom-swal-popup .swal2-close:hover {
        color: #fff !important;
        transform: scale(1.1) !important;
    }

/* Timer progress bar */
.dy-custom-swal-popup .swal2-timer-progress-bar {
    background-color: #F5AE18 !important;
}

/* Delete confirmation specific styling */
.dy-delete-confirmation {
    border-color: #dc3545 !important;
}

    .dy-delete-confirmation .dy-custom-swal-title {
        color: #dc3545 !important;
    }

/* Animation enhancements */
.dy-custom-swal-popup.swal2-show {
    animation: swalSlideInDown 0.4s ease-out !important;
}

@keyframes swalSlideInDown {
    from {
        transform: translate3d(0, -100%, 0) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dy-custom-swal-popup {
        margin: 1rem !important;
        padding: 1.5rem !important;
    }

    .dy-custom-swal-title {
        font-size: 1.5rem !important;
    }

    .dy-custom-swal-content {
        font-size: 1.1rem !important;
    }

    .dy-custom-swal-confirm-btn,
    .dy-custom-swal-cancel-btn {
        padding: 0.6rem 1.5rem !important;
        font-size: 1.1rem !important;
        min-width: 100px !important;
    }
}

@media (max-width: 576px) {
    .dy-custom-swal-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .dy-custom-swal-confirm-btn,
    .dy-custom-swal-cancel-btn {
        width: 100% !important;
    }
}
