/* Fancy animations for Apple-like feel */

/* Card flip */
.card {
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Button press effect */
button:active:not(:disabled) {
    transform: scale(0.97);
}

/* Transition between views */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* Success animation */
@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: success-pulse 0.5s ease-in-out;
}

/* Error shake animation */
@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.error-animation {
    animation: error-shake 0.5s ease-in-out;
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--apple-blue);
    animation: spin 1s linear infinite;
}

/* Hover transitions */
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.icon-button .icon {
    transition: transform 0.2s ease;
}

.icon-button:hover .icon {
    transform: scale(1.2);
}

/* Progress bar animation */
.progress-bar {
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal animations */
.modal {
    animation: fade-in 0.3s ease-out;
}

.modal-content {
    animation: scale-in 0.3s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-in {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}