/* Retreaver Premium Clone Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --retreaver-green: #3b82f6; /* Blue 500 */
    --retreaver-green-dark: #2563eb; /* Blue 600 */
    --retreaver-bg: #f8fafc;
    --retreaver-card-bg: #ffffff;
    --retreaver-text: #334155;
    --retreaver-border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--retreaver-bg) !important;
    color: var(--retreaver-text) !important;
}

/* Force Light Mode / Disable Dark Mode Styling overrides if dark mode happens to trigger */
html.dark body {
    background-color: var(--retreaver-bg) !important;
    color: var(--retreaver-text) !important;
}

/* Top Navigation Bar */
header.fi-topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--retreaver-border) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

/* Cards & Panels */
.fi-ta-content, .fi-fo-component, .fi-wi-widget {
    background-color: var(--retreaver-card-bg) !important;
    border: 1px solid var(--retreaver-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fi-ta-content:hover, .fi-wi-widget:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025) !important;
}

/* Buttons */
button.fi-btn-color-primary, a.fi-btn-color-primary {
    background-color: var(--retreaver-green) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.2) !important;
    transition: all 0.2s ease-in-out !important;
}

button.fi-btn-color-primary:hover, a.fi-btn-color-primary:hover {
    background-color: var(--retreaver-green-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.3) !important;
}

/* Data Tables */
.fi-ta-table {
    border-collapse: separate;
    border-spacing: 0;
}

.fi-ta-table th {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--retreaver-border) !important;
}

.fi-ta-table tr {
    transition: background-color 0.15s ease;
}

.fi-ta-table tr:hover {
    background-color: #f8fafc !important;
}

.fi-ta-table td {
    border-bottom: 1px solid var(--retreaver-border) !important;
    color: #334155 !important;
}

/* Badges */
.fi-badge {
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.5rem !important;
}

/* Remove rounded-full from certain elements to match Retreaver's slightly sharper enterprise look */
.rounded-full {
    border-radius: 6px !important;
}

/* Premium Login UI Updates */
.fi-simple-layout {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #e2e8f0 100%) !important;
}

/* Borderless and Completely Transparent Form Container */
.fi-simple-main, .fi-simple-main * {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Allow buttons and inputs to keep their backgrounds! The '*' selector is too aggressive. Let's fix that. */
.fi-simple-main, 
.fi-simple-main > div, 
.fi-simple-main > div > div, 
.fi-simple-main > div > section,
.fi-simple-page {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-shadow: 0 0 #0000 !important;
    box-shadow: none !important;
}

/* Restore the background of inputs and buttons */
.fi-simple-main input {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.fi-simple-main button {
    background-color: var(--retreaver-green) !important;
}

/* Fix Logo overlapping the Sign In text, scoped ONLY to the login screen */
.fi-simple-main .fi-logo {
    height: auto !important;
    margin-bottom: 2rem !important;
}
/* Sign In text and Logo naturally stack in Filament. */

/* Clean up complete. Reverting broken CSS. */
