/* PayMeTrust Fraud Service Backoffice - Custom Styles */

/* CSS Variables for theming */
:root {
    --primary: #0EA5E9;
    --primary-hover: #0284C7;
    --primary-light: #E0F2FE;
    --bg-main: #F8FAFC;
    --bg-sidebar: #0F172A;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-sidebar: #CBD5E1;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar-track {
    background: #1e293b;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Hidden scrollbar utility (for sidebar nav) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Transitions */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.15s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.slide-enter-active,
.slide-leave-active {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.slide-enter-from,
.slide-leave-to {
    transform: translateY(-10px);
    opacity: 0;
}

/* Modal Animation */
.modal-enter-active,
.modal-leave-active {
    transition: opacity 0.2s ease;
}

.modal-enter-active .modal-content,
.modal-leave-active .modal-content {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal-enter-from,
.modal-leave-to {
    opacity: 0;
}

.modal-enter-from .modal-content,
.modal-leave-to .modal-content {
    transform: scale(0.95);
    opacity: 0;
}

/* Toast Animation */
.toast-enter-active,
.toast-leave-active {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-enter-from,
.toast-leave-to {
    transform: translateX(100%);
    opacity: 0;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Table hover effect */
.table-row-hover:hover {
    background-color: #f8fafc;
}

/* Focus ring styles */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.5);
    border-color: #0EA5E9;
}

/* Button loading spinner */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dropdown menu */
.dropdown-menu {
    transform-origin: top right;
}

/* Sidebar active indicator */
.sidebar-item-active {
    position: relative;
}

.sidebar-item-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #0EA5E9;
    border-radius: 0 2px 2px 0;
}

/* Badge pulse animation for alerts */
.badge-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Form validation states */
.input-error {
    border-color: #EF4444 !important;
}

.input-error:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5) !important;
}

.input-success {
    border-color: #22C55E !important;
}

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

.card-hover:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Responsive utilities */
@media (max-width: 1023px) {
    .sidebar-mobile-hidden {
        transform: translateX(-100%);
    }

    .sidebar-mobile-visible {
        transform: translateX(0);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .sidebar {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* Vueform Multiselect Custom Styles */
.multiselect-filter {
    --ms-font-size: 0.875rem;
    --ms-line-height: 1.25rem;
    --ms-py: 0.375rem;
    --ms-px: 0.75rem;
    --ms-radius: 0.5rem;
    --ms-ring-width: 2px;
    --ms-ring-color: rgba(14, 165, 233, 0.2);
    --ms-border-color: #e2e8f0;
    --ms-border-color-active: #0ea5e9;
    --ms-bg: white;
    --ms-bg-disabled: #f8fafc;
    --ms-placeholder-color: #94a3b8;
    --ms-option-font-size: 0.875rem;
    --ms-option-line-height: 1.25rem;
    --ms-option-bg-pointed: #e0f2fe;
    --ms-option-color-pointed: #0369a1;
    --ms-option-bg-selected: #0ea5e9;
    --ms-option-color-selected: white;
    --ms-option-bg-selected-pointed: #0284c7;
    --ms-option-color-selected-pointed: white;
    --ms-tag-font-size: 0.75rem;
    --ms-tag-font-weight: 500;
    --ms-tag-bg: #e0f2fe;
    --ms-tag-color: #0369a1;
    --ms-tag-radius: 0.375rem;
    --ms-tag-py: 0.125rem;
    --ms-tag-px: 0.5rem;
    --ms-spinner-color: #0ea5e9;
    --ms-caret-color: #94a3b8;
    --ms-clear-color: #94a3b8;
    --ms-clear-color-hover: #64748b;
    --ms-dropdown-border-color: #e2e8f0;
    --ms-dropdown-radius: 0.5rem;
}

.multiselect-filter .multiselect-wrapper {
    min-height: 36px;
}

.multiselect-filter .multiselect-dropdown {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 4px;
}
