/**
 * Component Styles
 * CSS for Vue component transitions and animations
 */

/* ============ TOAST TRANSITIONS ============ */
.toast-enter-active,
.toast-leave-active {
    transition: all 0.3s ease;
}

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

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

.toast-move {
    transition: transform 0.3s ease;
}

/* ============ MODAL TRANSITIONS ============ */
.modal-enter-active,
.modal-leave-active {
    transition: opacity 0.3s ease;
}

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

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

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

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

/* ============ DROPDOWN TRANSITIONS ============ */
.dropdown-enter-active,
.dropdown-leave-active {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* ============ CONFIRM DIALOG TRANSITIONS ============ */
.confirm-dialog-enter-active,
.confirm-dialog-leave-active {
    transition: opacity 0.2s ease;
}

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

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

.confirm-dialog-enter-from .relative {
    transform: scale(0.95);
    opacity: 0;
}

.confirm-dialog-leave-to .relative {
    transform: scale(0.95);
    opacity: 0;
}

/* ============ IMAGE VIEWER TRANSITIONS ============ */
.image-viewer-enter-active,
.image-viewer-leave-active {
    transition: opacity 0.3s ease;
}

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

/* ============ SLIDE TRANSITIONS ============ */
.slide-left-enter-active,
.slide-left-leave-active {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide-left-enter-from {
    transform: translateX(100%);
    opacity: 0;
}

.slide-left-leave-to {
    transform: translateX(-100%);
    opacity: 0;
}

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

.slide-right-enter-from {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-right-leave-to {
    transform: translateX(100%);
    opacity: 0;
}

/* ============ FADE TRANSITIONS ============ */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.2s ease;
}

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

/* ============ SCALE TRANSITIONS ============ */
.scale-enter-active,
.scale-leave-active {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* ============ LIST TRANSITIONS ============ */
.list-enter-active,
.list-leave-active {
    transition: all 0.3s ease;
}

.list-enter-from,
.list-leave-to {
    opacity: 0;
    transform: translateX(-30px);
}

.list-move {
    transition: transform 0.3s ease;
}

/* ============ LOADING SPINNER ============ */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============ PULSE ANIMATION ============ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============ SKELETON LOADING ============ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

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

/* ============ PROGRESS BAR ============ */
.progress-bar {
    transition: width 0.3s ease;
}

/* ============ BADGE ANIMATIONS ============ */
.badge-bounce {
    animation: badge-bounce 0.5s ease;
}

@keyframes badge-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============ CHECKBOX ANIMATION ============ */
.checkbox-check {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: checkbox-check 0.3s ease forwards;
}

@keyframes checkbox-check {
    to {
        stroke-dashoffset: 0;
    }
}

/* ============ UPLOAD DRAG INDICATOR ============ */
.drag-indicator {
    transition: all 0.2s ease;
}

.drag-indicator.active {
    border-color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* ============ IMAGE GALLERY ============ */
.gallery-image {
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

/* ============ CARD HOVER EFFECTS ============ */
.card-hover {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

/* ============ BUTTON STATES ============ */
.btn-primary {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* ============ INPUT FOCUS STATES ============ */
.input-focus {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-focus:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============ TAB INDICATOR ============ */
.tab-indicator {
    transition: transform 0.3s ease, width 0.3s ease;
}

/* ============ SIDEBAR COLLAPSE ============ */
.sidebar-collapse {
    transition: width 0.3s ease, padding 0.3s ease;
}

/* ============ TOOLTIP ============ */
.tooltip {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============ ACCORDION ============ */
.accordion-content {
    overflow: hidden;
    transition: height 0.3s ease;
}

/* ============ NOTIFICATION DOT ============ */
.notification-dot {
    animation: notification-pulse 2s infinite;
}

@keyframes notification-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* ============ TOUCH FEEDBACK ============ */
@media (hover: none) {
    .touch-feedback:active {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

/* ============ DARK MODE SUPPORT (future) ============ */
@media (prefers-color-scheme: dark) {
    /* Dark mode variables can be defined here */
}
