:root {
    /* Color Palette - Based on "Fazenda RP" Screenshots */
    --color-primary: #10B981;
    /* Emerald Green */
    --color-primary-dark: #059669;
    --color-secondary: #0F766E;
    /* Teal dark for header */
    --color-accent: #F59E0B;
    /* Amber for warnings */
    --color-danger: #EF4444;
    /* Red for errors */

    --bg-body: #F3F4F6;
    /* Light gray background */
    --bg-card: #FFFFFF;
    --bg-main: #F3F4F6;

    --text-main: #1F2937;
    --text-muted: #6B7280;
    --text-light: #F9FAFB;

    --border-color: #E5E7EB;

    /* Spacing & Layout */
    --header-height: 60px;
    --nav-height: 50px;
    --container-padding: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Layout Grid Structure */
#app {
    display: grid;
    grid-template-rows: auto auto 1fr;
    /* Header, Nav, Content */
    min-height: 100vh;
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background-color: var(--bg-main);
}

.card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

/* Form Elements Base */
input,
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-top: 4px;
    font-size: 14px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Custom Dropdown Styles (Material Search) */
.custom-dropdown-container {
    position: relative;
    width: 100%;
}

.custom-dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: 4px;
}

.custom-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item:hover,
.custom-dropdown-item.focused {
    background-color: #f0fdf4;
}

.custom-dropdown-item strong {
    color: #1e293b;
    font-weight: 600;
}

.custom-dropdown-item span {
    color: #64748b;
    font-size: 0.85rem;
}