/**
 * iFix Repair - Estilos Personalizados
 */

/* Animaciones */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.3s ease-out;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #FF6600;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* Loader spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF6600;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #FF6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Pulse animation for important buttons */
.pulse-primary {
    animation: pulse-primary 2s infinite;
}

@keyframes pulse-primary {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 102, 0, 0);
    }
}

/* Mobile menu transition */
#mobileMenu {
    transition: all 0.3s ease-in-out;
}

/* Custom checkbox/radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #FF6600;
}

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

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

/* Disabled state */
button:disabled,
input:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* Responsive utilities */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: #FF6600;
    color: white;
}

.badge-success {
    background-color: #10b981;
    color: white;
}

.badge-warning {
    background-color: #f59e0b;
    color: white;
}

.badge-danger {
    background-color: #ef4444;
    color: white;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

/* Custom shadows */
.shadow-primary {
    box-shadow: 0 4px 14px 0 rgba(255, 102, 0, 0.2);
}

.shadow-primary-lg {
    box-shadow: 0 10px 25px 0 rgba(255, 102, 0, 0.25);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #FF6600 0%, #ff8833 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Card styles */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.card-hover {
    transition: all 0.3s ease;
}

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

/* Status indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-dot.active {
    background-color: #10b981;
}

.status-dot.inactive {
    background-color: #ef4444;
}

.status-dot.pending {
    background-color: #f59e0b;
}
