:root {
    --hoa-beige: #C9BDAB;
    --hoa-cream: #F5F3F1;
    --hoa-dark-grey: #5B656E;
    --hoa-light-grey: #DFE3E7;
    --hoa-medium-grey: #8998A6;
    --hoa-dark-blue: #181D24;
    --max-width: 1315px;
}


*,
::before,
::after {
    box-sizing: border-box !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed header */
}

body {
    font-family: 'Raleway', sans-serif;
    margin: 0px;
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.no-sans {
    font-family: 'Raleway' !important;
}

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

.color-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.material-symbols-outlined {
    font-weight: normal;
    color: var(--hoa-dark-blue);
}

/* .ag-theme-quartz {
    font-family: 'Raleway', sans-serif;
} */

.color-swatch {
    width: 168px;
    height: 120px;
    border: 1px solid #e0e0e0;
}

.color-label {
    font-size: 16px;
    font-weight: bold;
    margin-top: 12px;
    text-align: center;
}

/* Typography Styles */
.hoa-heading-large {
    font-family: 'Rufina';
    font-size: 36px;
    line-height: 1.14;
    font-weight: bold;
    color: var(--hoa-dark-blue);
}

.hoa-heading-medium {
    font-family: 'Rufina';
    font-size: 24px;
    line-height: auto;
    font-weight: bold;
    color: var(--hoa-dark-blue);
}

.hoa-heading-small {
    font-family: 'Rufina';
    font-size: 21px;
    line-height: auto;
    font-weight: bold;
    color: var(--hoa-dark-blue);
}

.hoa-subtitle {
    font-size: 18px;
    line-height: 1.78;
    font-weight: 500;
    color: var(--hoa-dark-blue);
}

.hoa-text-base {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--hoa-dark-blue);
}

.hoa-text-sm {
    font-size: 14px;
    color: var(--hoa-dark-blue);
}

.hoa-text-sm-bold {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--hoa-dark-blue);
}

.hoa-text-xs {
    font-size: 12px;
    line-height: 1.5;
    color: var(--hoa-dark-blue);
}

.hoa-text-xs-bold {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--hoa-dark-blue);
}

.hoa-10px {
    font-size: 10px;
    line-height: 1.8;
    font-weight: 700;
    color: var(--hoa-dark-blue);
}

.font-display {
    font-family: 'Rufina', serif;
    font-size: 36px;
    font-weight: 700;
}

.font-display.raleway {
    font-family: 'Raleway', sans-serif;
}

.typography-spec {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* Button Styles */
.hoa-btn {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* Primary Small Button */
.hoa-btn-primary-small {
    font-family: 'Roboto', sans-serif;
    background-color: var(--hoa-medium-grey);
    color: var(--hoa-dark-blue);
    padding: 4px 16px;
    min-height: 24px;
    font-size: 16px;
    border-radius: 4px;
}

.hoa-btn-primary-small:hover {
    background-color: #788693;
}

/* Primary Large Button */
.hoa-btn-primary-large {
    background-color: var(--hoa-dark-grey);
    color: white;
    padding: 0px 16px;
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border-top-left-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hoa-btn-primary-large:hover {
    background-color: #535d67;
}

.hoa-btn-large-icon {
    min-height: 40px !important;
    border: solid 0.5px #e0e0e0;
}

.hoa-primary-btn-icon {
    border: solid 0.5px #e0e0e0;
    font-family: 'Rawline', sans-serif;
    min-height: 40px;
    font-size: 16px;
    background-color: var(--hoa-dark-grey);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    border-top-left-radius: 0px;
    padding: 0px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hoa-primary-btn-icon .material-symbols-outlined {
    color: white !important;
}

.hoa-primary-btn-icon .material-symbols-outlined,
.hoa-tertiary-btn-icon .material-symbols-outlined {
    font-size: 16px !important;
    color: var(--hoa-dark-grey);
}

.hoa-tertiary-btn-icon {
    color: var(--hoa-dark-grey);
    border: solid 0.5px #e0e0e0;
    font-family: 'Lato', sans-serif;
    min-height: 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border-top-left-radius: 0px;
    padding: 0px 14px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;

}

/* Tertiary Small Button */
.hoa-btn-tertiary-small {
    background-color: white;
    color: var(--hoa-dark-grey);
    padding: 8px 16px;
    min-height: 40px;
    font-size: 16px;
    font-weight: 600;
    border: 1.4px solid var(--hoa-dark-grey);
    border-radius: 10px;
    border-top-left-radius: 0px;
}

/* Tertiary Large Button */
.hoa-btn-tertiary-large {
    background-color: white;
    color: var(--hoa-dark-grey);
    padding: 0px 16px;
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    border: 1.4px solid var(--hoa-dark-grey);
    border-radius: 10px;
    border-top-left-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hoa-btn-tertiary-large:hover,
.hoa-btn-tertiary-small:hover {
    background-color: #f6f6f6;
    color: var(--hoa-dark-grey);
}

.button-state-label {
    font-size: 16px;
    color: #8998A6;
    font-weight: 500;
}

/* Toggle Menu Styles */
.hoa-toggle-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hoa-toggle-label {
    font-size: 20px;
    color: #8998A6;
    font-weight: 500;
}

.hoa-toggle-group {
    display: flex;
    gap: 0;
    background-color: white;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hoa-toggle-option {
    padding: 4px 32px;
    font-size: 16px;
    font-weight: normal;
    border: none;
    background-color: transparent;
    color: var(--hoa-dark-grey);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.hoa-toggle-option.active {
    background-color: var(--hoa-beige);
    color: var(--hoa-dark-blue);
    font-weight: 600;
}

.hoa-toggle-option:hover:not(.active) {
    color: var(--hoa-dark-blue);
}

/* Form & Filter Styles */
.hoa-select {
    width: 100%;
}
.hoa-filter,
.hoa-select {
    height: 40px;
    padding: 0px 18px;
    font-size: 16px;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: var(--hoa-dark-grey);
    border: solid 1px #e0e0e0;
}

.hoa-filter {
    min-width: 140px;
}

.hoa-filter-inactive:hover,
.hoa-select:hover {
    border-color: var(--hoa-medium-grey);
}

.hoa-filter .material-symbols-outlined,
.hoa-select .material-symbols-outlined {
    font-size: 18px;
    cursor: pointer;
}

.hoa-filter-active .material-symbols-outlined:hover,
.hoa-select-active .material-symbols-outlined:hover {
    color: #ff0d47;
}

/* Filter Dropdown Styles */
.hoa-filter-dropdown {
    position: relative;
    display: inline-block;
}

.hoa-filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.hoa-filter-dropdown-menu.show {
    display: block;
}

.hoa-filter-dropdown-option {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 16px;
    color: var(--hoa-dark-grey);
    transition: background-color 0.2s ease;
}

.hoa-filter-dropdown-option:hover {
    background-color: #f5f5f5;
}

/* Text Input Styles */
.hoa-input-label {
    font-size: 16px;
    font-weight: 500;
    color: #181D24;
    margin-bottom: 8px;
    display: block;
}

.hoa-input-label .required {
    color: #ff0d47;
}

input::placeholder,
textarea::placeholder {
    color: var(--hoa-medium-grey) !important;
    font-size: 16px !important;
    font-family: Raleway !important;
}

.form-field {
    width: 316px;
}
.hoa-text-input {
    height: 40px;
    padding: 10px 16px;
    font-size: 16px;
    color: #181D24;
    background-color: white;
    border: solid 1px #e0e0e0;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}
.hoa-text-input::placeholder {
    color: var(--hoa-medium-grey);
}

.hoa-text-input:focus {
    outline: none;
    border-color: var(--hoa-medium-grey);
}

.hoa-text-input.error {
    border-color: #ff0d47;
    background-color: #fff5f5;
}

.hoa-error-message {
    font-size: 10px;
    color: #ff0d47;
    margin-top: 6px;
}

/* Textarea Styles */
.hoa-textarea {
    padding: 16px;
    font-size: 16px;
    border-radius: 10px;
    border: solid 1px #e0e0e0;
    background-color: #fff;
    width: 100%;
    min-height: 150px;
    resize: vertical;
    transition: all 0.3s ease;
    color: var(--hoa-medium-grey);
    font-family: Raleway !important;
}


.hoa-textarea.active,
.hoa-textarea:focus {
    outline: none;
    color: var(--hoa-dark-blue);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-wrap-reverse {
    flex-wrap: wrap-reverse;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.w-full {
    width: 100%;
}

.w-fit {
    width: fit-content;
}

.h-fit {
    height: fit-content;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: normal;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.w-fit {
    width: fit-content;
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
    margin: 0;
}

button {
    background: none;
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
    color: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.underline {
    text-decoration: underline;
}

.text-hoa-medium-grey {
    color: var(--hoa-medium-grey);
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.my-4 {
    margin-top: 16px;
    margin-bottom: 16px;
}

.my-8 {
    margin-top: 32px;
    margin-bottom: 32px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.m-auto {
    margin: auto;
}
.cursor-pointer {
    cursor: pointer;
}

/* Custom Table Styles */
.hoa-tables-section {
    padding: 80px 0;
}

.hoa-table-container {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--hoa-light-grey);
}

.hoa-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Raleway', sans-serif;
}

.hoa-table thead {
    background: white;
    border-bottom: 1px solid var(--hoa-light-grey);
}

.hoa-table thead th {
    padding: 12px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    color: var(--hoa-dark-blue);
    border-right: 1px solid var(--hoa-light-grey);
}

.hoa-table thead th:last-child {
    border-right: none;
}

.hoa-table tbody tr {
    border-bottom: 1px solid var(--hoa-light-grey);
}

.hoa-table tbody tr:last-child {
    border-bottom: none;
}

.hoa-table tbody td {
    padding: 24px;
    /* font-size: 16px;
    color: var(--hoa-dark-grey); */
    vertical-align: middle;
}

.hoa-table tbody td.photo-cell {
    padding: 12px 24px;
}

.hoa-table tbody td.photo-cell img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    display: block;
}

.hoa-table tbody td.action-cell {
    text-align: center;
    padding: 12px 24px;
}

.hoa-table tbody td.loading-cell {
    text-align: center;
    padding: 40px 24px;
    color: var(--hoa-medium-grey);
    font-style: italic;
}

.hoa-table tbody td.action-cell button {
    min-height: 40px;
    font-size: 14px;
    padding: 0 20px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .form-field {
        width: 100%;
    }
    .hoa-text-input input[type="date"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    
        height: 40px !important;
        width: 316px !important;
        padding: 8px;
        box-sizing: border-box;
        font-size: 16px;
    
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 10px;
    }
}