/* Custom Styles for CustodyReady */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Font Classes */
.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.font-opensans {
    font-family: 'Open Sans', sans-serif;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Custom Button Styles */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold transition duration-150;
}

.btn-primary:hover {
    @apply bg-blue-700 transform -translate-y-1;
}

.btn-secondary {
    @apply bg-transparent border-2 border-blue-600 text-blue-600 px-6 py-3 rounded-lg font-semibold transition duration-150;
}

.btn-secondary:hover {
    @apply bg-blue-600 text-white transform -translate-y-1;
}

/* Custom Card Styles */
.card {
    @apply bg-white rounded-xl shadow-lg p-8 transition duration-150;
}

.card:hover {
    @apply transform -translate-y-2 shadow-xl;
}

/* Custom Section Styles */
.section-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Custom Form Styles */
.form-input {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition duration-150;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Custom Navigation Styles */
.nav-link {
    @apply text-gray-500 hover:text-blue-600 transition duration-150;
}

.nav-link.active {
    @apply text-blue-600 border-b-2 border-blue-600;
}

/* Custom Hero Section Styles */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Custom Feature Card Styles */
.feature-card {
    @apply bg-white rounded-xl shadow-lg p-8 transition duration-300;
}

.feature-card:hover {
    @apply transform -translate-y-2 shadow-xl;
}

.feature-icon {
    @apply w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-6;
}

/* Custom Testimonial Styles */
.testimonial-card {
    @apply bg-gray-50 rounded-xl p-8 transition duration-300;
}

.testimonial-card:hover {
    @apply transform -translate-y-2 shadow-lg;
}

/* Custom Pricing Card Styles */
.pricing-card {
    @apply bg-white rounded-xl shadow-lg p-8 border-2 border-gray-100 transition duration-300;
}

.pricing-card:hover {
    @apply transform -translate-y-2 shadow-xl;
}

.pricing-card.popular {
    @apply border-blue-500 transform scale-105;
}

/* Custom Footer Styles */
.footer-link {
    @apply text-gray-300 hover:text-white transition duration-150;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-pattern {
        background-size: 30px 30px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Loading Spinner */
.spinner {
    @apply w-6 h-6 border-2 border-blue-600 border-t-transparent rounded-full animate-spin;
}

/* Custom Tooltip */
.tooltip {
    @apply relative inline-block;
}

.tooltip .tooltip-text {
    @apply invisible absolute z-10 px-4 py-2 bg-gray-900 text-white text-sm rounded-lg opacity-0 transition-opacity duration-300;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip:hover .tooltip-text {
    @apply visible opacity-100;
}

/* Custom Badge */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-primary {
    @apply bg-blue-100 text-blue-800;
}

.badge-success {
    @apply bg-green-100 text-green-800;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800;
}

/* Custom Alert */
.alert {
    @apply p-4 rounded-lg mb-4;
}

.alert-success {
    @apply bg-green-100 text-green-800;
}

.alert-error {
    @apply bg-red-100 text-red-800;
}

.alert-warning {
    @apply bg-yellow-100 text-yellow-800;
}

.alert-info {
    @apply bg-blue-100 text-blue-800;
} 