/* Custom styles to complement Tailwind CSS */

/* Animation for pulse effect */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* Smooth hover transitions */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.btn-primary {
    @apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2;
    background-color: #1d4ed8;
    color: #eff6ff;
    padding: 0.5rem 1rem;
    height: 2.25rem;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-lg {
    height: 2.5rem;
    padding: 0.5rem 1.5rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #e4e4e7;
    color: #18181b;
}

.btn-outline:hover {
    background-color: #f4f4f5;
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #e4e4e7;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    white-space: nowrap;
    transition: color 0.2s, box-shadow 0.2s;
}

.badge-primary {
    background-color: #1d4ed8;
    color: #eff6ff;
}

.badge-amber {
    background-color: #d97706;
    color: white;
}

.badge-red {
    background-color: #dc2626;
    color: white;
}

.badge-amber:hover {
    background-color: #b45309;
}

.badge-red:hover {
    background-color: #b91c1c;
}

.badge-outline {
    border-color: #d97706;
    color: #d97706;
    background-color: transparent;
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
        max-width: 1280px;
    }
}

/* Navigation */
.nav-link {
    position: relative;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: #dc2626;
}

.nav-link.active {
    color: #1d4ed8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1d4ed8;
    border-radius: 1px;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(90deg, #dc2626, #d97706);
}

/* Background patterns */
.bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, #dc2626, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive images placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #dc2626, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Section spacing */
.section {
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 4rem 2rem;
    }
}

.section-sm {
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .section-sm {
        padding: 3rem 1.5rem;
    }
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e4e4e7;
}

.data-table th {
    font-weight: 600;
    background-color: #f8fafc;
    color: #334155;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

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

    body {
        font-size: 12pt;
    }
}
