/**
 * Custom Styles - Instituto Patas do Bem
 */

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover Effects */
.hover-elevate {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-elevate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 10px 40px -10px rgba(249, 115, 22, 0.1);
}

/* Buttons */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Progress Bar Animation */
.progress-bar {
    animation: progressFill 1.5s ease-out 0.5s forwards;
}

@keyframes progressFill {
    from { width: 0; }
}

/* Selection */
::selection {
    background-color: rgba(249, 115, 22, 0.2);
    color: #1f2937;
}

/* Print Styles */
@media print {
    header, footer, nav, button, .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
}
