/* Custom styles to complement Tailwind CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* A simple text-shadow utility for hero headlines */
.headline-shadow {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom prose styles for content pages */
.prose h2 {
    color: #1e3a8a;
    /* Tailwind's blue-900 */
}

.prose h3 {
    color: #1f2937;
    /* Tailwind's gray-800 */
}

.prose a {
    color: #dc2626;
    /* Tailwind's red-600 */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.prose a:hover {
    text-decoration: underline;
    color: #991b1b;
    /* Tailwind's red-800 */
}

/* =================================================================
STYLES FOR FULL-WIDTH FORM BAR (Standard Pages)
=================================================================
*/
.form-bar-input {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-bar-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #dc2626;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.form-bar-input:not(select) {
    background-image: none;
}

.form-bar-input select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* =================================================================
STYLES FOR SIDEBAR FORM (REPAIRED)
=================================================================
- Using class: .sidebar-form-input
- Forced Black Text (!important)
- Forced White Background (!important)
*/
.sidebar-form-input {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;

    /* VISIBILITY FIXES */
    background-color: #ffffff !important;
    color: #000000 !important;

    border: 1px solid #d1d5db;
    /* border-gray-300 */
    border-radius: 0.375rem;
    /* rounded-md */
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;

    /* Reset Appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sidebar-form-input:focus {
    border-color: #1e3a8a;
    /* border-blue-900 */
    box-shadow: 0 0 0 2px #dbeafe;
    /* focus:ring-2 focus:ring-blue-200 */
    outline: 2px solid transparent;
    outline-offset: 2px;

    /* Maintain visibility on focus */
    background-color: #ffffff !important;
    color: #000000 !important;
}

.sidebar-form-input::placeholder {
    color: #6b7280 !important;
    /* Standard gray */
    opacity: 1;
}

/* Specific SVG Arrow for Select dropdowns */
select.sidebar-form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}