/* Custom Styling and UI Transitions for Propósito RH */

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

/* Micro-animations and transitions */
.transition-all-300 {
    transition: all 0.3s ease-in-out;
}

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

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

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-panel-dark {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toast Notification animations */
.toast-item {
    animation: slide-in-toast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in-toast {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-item.fade-out {
    animation: fade-out-toast 0.4s ease forwards;
}

@keyframes fade-out-toast {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

/* Custom Checkbox styles */
.custom-checkbox:checked + label .checkbox-box {
    background-color: #2563EB;
    border-color: #2563EB;
}

/* Custom file upload styling wrapper */
.file-upload-drag {
    border: 2px dashed #D1D5DB;
    transition: all 0.3s ease;
}
.file-upload-drag:hover, .file-upload-drag.drag-active {
    border-color: #2563EB;
    background-color: #EFF6FF;
}

/* Tooltip implementation */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: #111827;
    color: #FFFFFF;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 50;
}
[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Custom Scrollbars for dashboard sidebars and menus */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: #F3F4F6;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Pulse animation for CTA buttons */
.pulse-glow {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    animation: pulse-glow-anim 2s infinite;
}

@keyframes pulse-glow-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}
