/**
 * Utility CSS classes for common UI patterns
 * Simplifies repeated Tailwind combinations
 */

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #93c5fd;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    background-color: #dbeafe;
    color: #1d4ed8;
    transition: background-color 0.2s;
}

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

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5), 0 0 0 1px #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #374151;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.5), 0 0 0 1px #fff;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #fca5a5;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    background-color: #fee2e2;
    color: #b91c1c;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #fecaca;
}

.btn-danger:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5), 0 0 0 1px #fff;
}

.btn-primary-green {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #34d399;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    background-color: #d1fae5;
    color: #047857;
    transition: background-color 0.2s;
}

.btn-primary-green:hover {
    background-color: #a7f3d0;
}

.btn-primary-green:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5), 0 0 0 1px #fff;
}

.btn-primary-yellow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #fbbf24;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    background-color: #fef3c7;
    color: #b45309;
    transition: background-color 0.2s;
}

.btn-primary-yellow:hover {
    background-color: #fde68a;
}

.btn-primary-yellow:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.5), 0 0 0 1px #fff;
}

/* Form Input Styles */
.input-field {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.input-field:focus {
    outline: none;
    ring: 2px;
    ring-color: #60a5fa;
    border-color: transparent;
    box-shadow: 0 0 0 2px #60a5fa;
}

/* Card Styles */
.card-default {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.card-default:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-internal {
    background: linear-gradient(to right, #fffbeb, #fff7ed);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid #ffebaa;
}

.card-internal:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Section Styles */
.section-internal {
    background: linear-gradient(to right, #fffbeb, #fff7ed);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid #ffe693;
}

.section-internal .section-header {
    border-bottom: 1px solid #ffebaa;
}
