﻿/* 
 * Additional Fluent Design 2 Components for Real Estate CRM
 * Specific components and layouts
 */

/* ============== GLOBAL CHECKBOX STYLES ============== */
input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    cursor: pointer;
}

/* Label with checkbox - text spacing */
label input[type="checkbox"] {
    margin-right: 10px;
}

#addProperty {
    max-width: none;
    overflow-y: auto;
    max-height: none;
    padding: 0;
}

/* ============== PAGE HEADER ============== */
.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacingHorizontalL);
}

.view-toggle-container {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalL);
}

.view-toggle-buttons {
    display: flex;
    gap: var(--spacingHorizontalXXS);
    background-color: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusMedium);
    padding: var(--spacingVerticalXXS);
}

.sort-controls {
    display: flex;
    align-items: center;
}

.sort-select {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    background-color: var(--colorNeutralBackground1);
    color: var(--colorNeutralForeground1);
    font-size: var(--font-size-300);
    cursor: pointer;
    transition: all var(--durationFast) var(--curveEasyEase);
    min-width: 220px;
}

.sort-select:hover {
    background-color: var(--colorNeutralBackground2);
    border-color: var(--colorNeutralStroke1);
}

.sort-select:focus {
    outline: 2px solid var(--colorBrandBackground);
    outline-offset: 2px;
}

.view-toggle-btn {
    background-color: transparent;
    border: none;
    color: var(--colorNeutralForeground2);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-radius: var(--borderRadiusSmall);
    cursor: pointer;
    font-size: var(--font-size-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--durationFast) var(--curveEasyEase);
    min-width: 40px;
    height: 36px;
}

.view-toggle-btn i {
    font-size: 18px;
    line-height: 1;
}

.view-toggle-btn:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.view-toggle-btn.active {
    background-color: var(--colorBrandBackground);
    color: white;
}

.view-toggle-btn.active i {
    color: white;
}

.view-toggle-btn.active:hover {
    background-color: var(--colorBrandBackgroundHover);
}

/* ============== PROPERTIES GRID ============== */
.properties-grid,
#recentlyAddedContainer,
.recently-added-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: var(--spacingHorizontalL) !important;
    padding: var(--spacingVerticalL) 0 !important;
    flex-direction: initial !important;
}

/* Date Group Styles for Recently Added */
.date-group {
    margin-bottom: var(--spacingVerticalXXL);
    grid-column: 1 / -1;
}

.date-group-header {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    background: linear-gradient(135deg, var(--colorNeutralBackground2) 0%, var(--colorNeutralBackground3) 100%);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin-bottom: var(--spacingVerticalL);
    box-shadow: var(--shadow2);
}

.date-group-header i {
    font-size: var(--font-size-500);
    color: var(--colorBrandForeground1);
}

.date-group-header.today {
    background: linear-gradient(135deg, var(--colorBrandBackground) 0%, var(--colorBrandBackground2) 100%);
    border-color: var(--colorBrandStroke1);
    color: var(--colorNeutralForegroundOnBrand);
}

.date-group-header.today i {
    color: var(--colorNeutralForegroundOnBrand);
}

.date-group-header.yesterday {
    background: linear-gradient(135deg, var(--colorPaletteYellowBackground1) 0%, var(--colorPaletteYellowBackground2) 100%);
    border-color: var(--colorPaletteYellowBorder1);
    color: var(--colorNeutralForeground1);
}

.date-group-header.yesterday i {
    color: var(--colorPaletteYellowForeground1);
}

.group-count {
    margin-left: auto;
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-regular);
    opacity: 0.8;
}

.date-group-content {
    width: 100%;
}

.date-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacingHorizontalL);
}

.property-card {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    overflow: hidden;
    transition: all var(--durationFast) var(--curveEasyEase);
    cursor: pointer;
}

.property-card-image {
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--colorNeutralBackground3);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.property-card-image:hover {
    opacity: 0.95;
}

/* Table View Styles */
.properties-table {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    overflow: hidden;
}

.properties-table table {
    width: 100%;
    border-collapse: collapse;
}

.properties-table thead {
    background-color: var(--colorNeutralBackground2);
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

.properties-table th {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    text-align: left;
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    border-right: 1px solid var(--colorNeutralStroke2);
}

.properties-table th:nth-child(3) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.properties-table th:last-child {
    border-right: none;
    width: 60px;
    max-width: 60px;
    min-width: 60px;
}

.properties-table tbody tr {
    border-bottom: 1px solid var(--colorNeutralStroke2);
    transition: background-color var(--durationFast) var(--curveEasyEase);
    cursor: pointer;
}

.properties-table tbody tr:hover {
    background-color: var(--colorNeutralBackground2);
}

.properties-table tbody tr:last-child {
    border-bottom: none;
}

.properties-table td {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    vertical-align: middle;
    border-right: 1px solid var(--colorNeutralStroke2);
}

.properties-table td:nth-child(3) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.properties-table td:last-child {
    border-right: none;
    width: 60px;
    max-width: 60px;
    min-width: 60px;
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXXS);
}

.property-table-image {
    width: 40px;
    height: 40px;
    border-radius: var(--borderRadiusMedium);
    overflow: hidden;
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.property-table-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-table-image i {
    color: var(--colorNeutralForeground4);
    font-size: 16px;
}

.property-table-title {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-medium);
    color: var(--colorNeutralForeground1);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--line-height-300);
}

.property-table-price {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-bold);
    color: var(--colorBrandForeground1);
}

.property-table-address {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-table-features {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
}

.property-table-broker {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.property-table-broker-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--borderRadiusCircular);
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.property-table-broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-table-broker-avatar i {
    color: var(--colorNeutralForeground3);
    font-size: 12px;
}

.property-table-broker-name {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    font-weight: var(--font-weight-medium);
}

.property-table-actions {
    display: flex;
    justify-content: center;
}

.property-table-actions .dropdown-container {
    width: 100%;
}

.property-table-actions .action-btn {
    width: 100%;
    min-width: auto;
    max-width: 55px;
    padding: 4px 4px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown menu for table view - show above */
.property-table-actions .action-dropdown-menu {
    position: absolute;
    bottom: auto;
    top: 100%;
    left: auto;
    right: 0;
    min-width: 200px;
    margin-top: var(--spacingVerticalXS);
    margin-bottom: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* If dropdown would go off screen, show it to the left */
@media (max-width: 768px) {
    .property-table-actions .action-dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* Property Post Styles - Feed Format */
.property-post {
    max-width: 500px;
    margin: 0 auto var(--spacingVerticalL) auto;
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    overflow: hidden;
    transition: all var(--durationFast) var(--curveEasyEase);
    cursor: pointer;
}

.property-post:hover {
    box-shadow: var(--shadow-16);
    transform: translateY(-2px);
    border-color: var(--colorBrandForeground1);
}

.property-post:last-child {
    margin-bottom: 0;
}

/* Ensure feed container respects the centering */
#propertiesFeed,
.feed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: var(--spacingVerticalL) var(--spacingHorizontalM);
}

.property-card:hover {
    box-shadow: var(--shadow-16);
    transform: translateY(-2px);
    border-color: var(--colorBrandForeground1);
}

.property-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card-image i {
    font-size: 48px;
    color: var(--colorNeutralForeground4);
}

.property-badge {
    position: absolute;
    top: var(--spacingVerticalS);
    right: var(--spacingHorizontalS);
    background-color: var(--colorBrandBackground);
    color: white;
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-semibold);
}

.mls-badge {
    background-color: var(--colorStatusWarningForeground1);
    color: white;
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalS);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    min-width: fit-content;
}

.property-card-image .mls-badge {
    position: absolute;
    top: calc(var(--spacingVerticalS) + 28px);
    right: var(--spacingHorizontalS);
}

.image-badges .mls-badge {
    position: static;
    top: auto;
    right: auto;
}

.price-difference-badge {
    position: absolute;
    bottom: var(--spacingVerticalS);
    right: var(--spacingHorizontalS);
    color: white;
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-100);
    font-weight: var(--font-weight-semibold);
}

.property-broker-info {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.broker-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--borderRadiusCircular);
    overflow: hidden;
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broker-avatar i {
    color: var(--colorNeutralForeground3);
    font-size: 12px;
}

.broker-name {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    font-weight: var(--font-weight-medium);
}

.property-card-content {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
}

.property-card-content h3 {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalXS) 0;
    line-height: var(--line-height-300);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-price {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-bold);
    color: var(--colorBrandForeground1);
    margin: 0 0 var(--spacingVerticalXS) 0;
}

.property-card-address {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    margin: 0 0 var(--spacingVerticalS) 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-features {
    display: flex;
    gap: var(--spacingHorizontalS);
    flex-wrap: wrap;
    margin-bottom: var(--spacingVerticalS);
}

.property-card-features span {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    background-color: var(--colorNeutralBackground3);
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    border-radius: var(--borderRadiusMedium);
}

.property-actions {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-top: 1px solid var(--colorNeutralStroke2);
}

.dropdown-container {
    position: relative;
}

.action-btn {
    width: 100%;
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    color: var(--colorNeutralForeground1);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-radius: var(--borderRadiusMedium);
    cursor: pointer;
    font-size: var(--font-size-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacingHorizontalS);
    transition: all var(--durationFast) var(--curveEasyEase);
}

.action-btn:hover {
    background-color: var(--colorNeutralBackground3);
    border-color: var(--colorNeutralStroke2);
}

.action-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    box-shadow: var(--shadow-16);
    padding: var(--spacingVerticalXS);
    margin-bottom: var(--spacingVerticalXS);
    z-index: 10;
}

.dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--colorNeutralForeground1);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-radius: var(--borderRadiusSmall);
    cursor: pointer;
    font-size: var(--font-size-300);
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    transition: all var(--durationFast) var(--curveEasyEase);
    text-align: left;
}

.dropdown-item:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--colorNeutralStroke2);
    margin: var(--spacingVerticalXS) 0;
}

/* ============== FILTERS ============== */
.property-filters,
.clients-filters {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    margin-bottom: var(--spacingVerticalL);
}

.filter-row {
    display: flex;
    gap: var(--spacingHorizontalM);
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalXS);
    flex: 1 1 0;
    min-width: 0;
}

.filter-group label {
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-medium);
    color: var(--colorNeutralForeground2);
}

.clear-filters-btn {
    color: var(--colorBrandForeground1);
    cursor: pointer;
    font-size: var(--font-size-300);
    text-decoration: underline;
    transition: color var(--durationFast) var(--curveEasyEase);
}

.clear-filters-btn:hover {
    color: var(--colorBrandForeground2);
}

.clients-filter-toggle {
    margin-bottom: var(--spacingVerticalL);
}

/* ============== PLACES & CHECKBOXES ============== */
.places-filter,
.postanova-filter,
.conditions-filter,
.subtypes-filter,
.heating-filter,
.documents-filter,
.developers-filter {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    margin-bottom: var(--spacingVerticalL);
    overflow: hidden;
}

.places-filter-header,
.postanova-filter-header,
.conditions-filter-header,
.subtypes-filter-header,
.heating-filter-header,
.documents-filter-header,
.developers-filter-header {
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

/* Filter header buttons - 100% width */
.places-filter-header button,
.postanova-filter-header button,
.conditions-filter-header button,
.subtypes-filter-header button,
.heating-filter-header button,
.documents-filter-header button,
.developers-filter-header button {
    width: 100% !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacingHorizontalS);
}

/* Specific toggle button IDs - ensure 100% width */
#togglePlacesBtn,
#togglePostanovaBtn,
#toggleConditionsBtn,
#toggleSubtypesBtn,
#toggleHeatingBtn,
#toggleDocumentsBtn,
#toggleDevelopersBtn,
#an_togglePlacesBtn,
#an_toggleConditionsBtn {
    width: 100% !important;
    max-width: none !important;
}

.places-checkboxes,
.postanova-checkboxes,
.conditions-checkboxes,
.subtypes-checkboxes,
.heating-checkboxes,
.documents-checkboxes {
    padding: var(--spacingVerticalL);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacingVerticalS);
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacingVerticalS);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    padding: var(--spacingVerticalS);
    border-radius: var(--borderRadiusMedium);
    cursor: pointer;
    transition: background-color var(--durationFast) var(--curveEasyEase);
}

.checkbox-item:hover {
    background-color: var(--colorNeutralBackground3);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    accent-color: var(--colorBrandBackground);
}

.checkbox-item label {
    cursor: pointer;
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground1);
}

.developers-selects {
    padding: var(--spacingVerticalL);
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalL);
}

.developer-select-group,
.complex-select-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalS);
}

/* ============== KANBAN/CRM ============== */
.clients-kanban-board {
    margin-top: var(--spacingVerticalL);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.kanban-scroll-nav {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    margin-bottom: var(--spacingVerticalL);
    padding: var(--spacingVerticalS) 0;
    flex-shrink: 0;
}

.kanban-nav-btn {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    color: var(--colorNeutralForeground2);
    width: 32px;
    height: 32px;
    border-radius: var(--borderRadiusMedium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--durationFast) var(--curveEasyEase);
}

.kanban-nav-btn:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.kanban-scroll-indicator {
    flex: 1;
    height: 2px;
    background-color: var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusSmall);
    position: relative;
}

.kanban-scroll-bar {
    height: 100%;
    background-color: var(--colorBrandBackground);
    border-radius: var(--borderRadiusSmall);
    width: 30%;
    transition: all var(--durationFast) var(--curveEasyEase);
}

.kanban-columns-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--spacingVerticalS);
    flex: 1;
    min-height: 0;
}

.kanban-columns {
    display: flex;
    gap: var(--spacingHorizontalL);
    min-width: min-content;
    height: 100%;
}

.kanban-column {
    min-width: 280px;
    max-width: 320px;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kanban-column-header {
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    border-radius: var(--borderRadiusMedium);
    background: linear-gradient(135deg, var(--colorBrandBackground) 0%, var(--colorBrandBackground2) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow4);
    min-height: 64px;
    height: 64px;
}

/* Different colors for each column */
.kanban-column:nth-child(1) .kanban-column-header {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.kanban-column:nth-child(2) .kanban-column-header {
    background: linear-gradient(135deg, #8764b8 0%, #744da9 100%);
}

.kanban-column:nth-child(3) .kanban-column-header {
    background: linear-gradient(135deg, #00b7c3 0%, #038387 100%);
}

.kanban-column:nth-child(4) .kanban-column-header {
    background: linear-gradient(135deg, #498205 0%, #3e7204 100%);
}

.kanban-column:nth-child(5) .kanban-column-header {
    background: linear-gradient(135deg, #ca5010 0%, #a74109 100%);
}

.kanban-column:nth-child(6) .kanban-column-header {
    background: linear-gradient(135deg, #e3008c 0%, #bf0077 100%);
}

.kanban-column:nth-child(7) .kanban-column-header {
    background: linear-gradient(135deg, #004e8c 0%, #00426d 100%);
}

.kanban-column:nth-child(8) .kanban-column-header {
    background: linear-gradient(135deg, #5c2e91 0%, #4a2472 100%);
}

.kanban-column-title {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-bold);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.kanban-column-count {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: white;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: var(--borderRadiusCircular);
    backdrop-filter: blur(10px);
}

.kanban-column-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
}

/* Kanban Client Cards */
.kanban-client-card {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    padding: var(--spacingVerticalM);
    margin-bottom: var(--spacingVerticalS);
    cursor: pointer;
    transition: all var(--durationFast) var(--curveEasyEase);
    box-shadow: var(--shadow2);
}

.kanban-client-card:first-child {
    margin-top: 0;
}

.kanban-client-card:hover {
    box-shadow: var(--shadow8);
    transform: translateY(-2px);
    border-color: var(--colorBrandStroke1);
    cursor: pointer;
}

.kanban-client-card:last-child {
    margin-bottom: 0;
}

.kanban-client-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(3deg);
}

.kanban-client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacingVerticalS);
    gap: var(--spacingHorizontalS);
}

.kanban-client-name {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0;
    flex: 1;
    line-height: var(--line-height-300);
}

.kanban-client-type {
    font-size: var(--font-size-200);
    padding: 2px 8px;
    border-radius: var(--borderRadiusSmall);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground2);
    white-space: nowrap;
    flex-shrink: 0;
}

.kanban-client-type.apartment {
    background-color: var(--colorPaletteBlueBorder1);
    color: var(--colorPaletteBlueForeground1);
}

.kanban-client-type.house {
    background-color: var(--colorPaletteGreenBorder1);
    color: var(--colorPaletteGreenForeground1);
}

.kanban-client-type.commercial {
    background-color: var(--colorPalettePurpleBorder1);
    color: var(--colorPalettePurpleForeground1);
}

.kanban-client-type.land {
    background-color: var(--colorPaletteYellowBorder1);
    color: var(--colorPaletteYellowForeground1);
}

.kanban-client-operation {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalXS);
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    margin-bottom: var(--spacingVerticalXS);
}

.kanban-client-operation i {
    font-size: var(--font-size-300);
    color: var(--colorBrandForeground1);
}

.kanban-client-budget {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalXS);
    font-size: var(--font-size-300);
    color: var(--colorPaletteGreenForeground1);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacingVerticalXS);
}

.kanban-client-budget i {
    font-size: var(--font-size-300);
    color: var(--colorPaletteGreenForeground1);
}

.kanban-client-requirements {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalXS);
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    margin-bottom: var(--spacingVerticalXS);
}

.kanban-client-requirements i {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
}

.kanban-client-dates {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalXS);
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    margin-top: var(--spacingVerticalS);
    padding-top: var(--spacingVerticalS);
    border-top: 1px solid var(--colorNeutralStroke2);
}

.kanban-client-dates i {
    font-size: var(--font-size-200);
}

.kanban-empty-state {
    text-align: center;
    color: var(--colorNeutralForeground3);
    font-size: var(--font-size-300);
    font-style: italic;
    padding: var(--spacingVerticalXXL) var(--spacingHorizontalL);
}

.kanban-column-cards {
    min-height: 100px;
    transition: background-color var(--durationFast) var(--curveEasyEase);
}

.kanban-column-cards.drag-over {
    background-color: rgba(0, 120, 212, 0.08);
    border: 2px dashed var(--colorBrandStroke1);
    border-radius: var(--borderRadiusMedium);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.kanban-column.drag-over {
    transform: scale(1.02);
    transition: transform var(--durationNormal) var(--curveEasyEase);
}

.kanban-column.drag-over .kanban-column-header {
    box-shadow: var(--shadow16);
    transform: translateY(-2px);
}

.client-card {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalM);
    margin-bottom: var(--spacingVerticalS);
    cursor: pointer;
    transition: all var(--durationFast) var(--curveEasyEase);
    box-shadow: var(--shadow-2);
}

/* ============== PAGINATION ============== */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacingVerticalL) 0;
    border-top: 1px solid var(--colorNeutralStroke2);
    margin-top: var(--spacingVerticalL);
}

.pagination-info {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground2);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.page-numbers {
    display: flex;
    gap: var(--spacingHorizontalXXS);
}

.page-number {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    color: var(--colorNeutralForeground1);
    width: 32px;
    height: 32px;
    border-radius: var(--borderRadiusMedium);
    cursor: pointer;
    font-size: var(--font-size-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--durationFast) var(--curveEasyEase);
}

.page-number:hover {
    background-color: var(--colorNeutralBackground3);
}

.page-number.active {
    background-color: var(--colorBrandBackground);
    border-color: var(--colorBrandBackground);
    color: white;
}

/* ============== EMPTY STATES ============== */
.empty-state,
.error-state {
    text-align: center;
    padding: var(--spacingVerticalXXXL);
    color: var(--colorNeutralForeground3);
}

.empty-state i,
.error-state i {
    font-size: 64px;
    margin-bottom: var(--spacingVerticalL);
    opacity: 0.5;
}

.empty-state h3,
.error-state h3 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalS) 0;
}

.empty-state p,
.error-state p {
    font-size: var(--font-size-300);
    margin: 0 0 var(--spacingVerticalL) 0;
}

/* ============== CONTENT GRID ============== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacingHorizontalXXL);
    align-items: start;
}

.properties-feed {
    background: transparent;
    /* background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2); */
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    max-height: 800px;
   
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalL);
}

.dashboard-sidebar {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalL);
}

.dashboard-sidebar h5 {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalL) 0;
}

/* Sidebar Statistics */
.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalM);
    padding-bottom: var(--spacingVerticalL);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    margin-bottom: var(--spacingVerticalL);
}

.sidebar-stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalM);
    padding: var(--spacingVerticalM);
    background-color: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusMedium);
    border-left: 3px solid var(--colorBrandBackground);
    transition: all var(--durationFast) var(--curveEasyEase);
}

.sidebar-stat-item:hover {
    background-color: var(--colorNeutralBackground3);
    transform: translateY(-1px);
}

.sidebar-stat-icon {
    width: 32px;
    height: 32px;
    background-color: var(--colorBrandBackground);
    color: white;
    border-radius: var(--borderRadiusMedium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-stat-info {
    flex: 1;
    min-width: 0;
}

.sidebar-stat-info h4 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-bold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalXXS) 0;
    line-height: var(--line-height-300);
}

.sidebar-stat-info p {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    margin: 0;
    line-height: var(--line-height-200);
}

/* Hide original stats-grid to save space */
.stats-grid {
    display: none !important;
}

/* ============== RADIO GROUPS ============== */
.radio-group {
    display: flex;
    gap: var(--spacingHorizontalL);
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    cursor: pointer;
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground1);
}

.radio-option input[type="radio"] {
    margin: 0;
    accent-color: var(--colorBrandBackground);
}

/* ============== SALES ITEMS (RECENT SALES CARDS) ============== */
.sales-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacingHorizontalM);
    padding: var(--spacingVerticalM);
    border-radius: var(--borderRadiusMedium);
    background-color: var(--colorNeutralBackground2);
    border-left: 3px solid var(--colorStatusSuccessForeground1);
    margin-bottom: var(--spacingVerticalS);
    transition: all var(--durationFast) var(--curveEasyEase);
    cursor: pointer;
}

.sales-item:hover {
    background-color: var(--colorNeutralBackground3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-4);
}

.sales-item:last-child {
    margin-bottom: 0;
}

.sales-broker-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--borderRadiusCircular);
    background-color: var(--colorNeutralBackground4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--colorNeutralForeground3);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-medium);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--colorNeutralStroke2);
}

.sales-broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sales-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalXXS);
}

.sales-broker-name {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-200);
    color: var(--colorStatusSuccessForeground1);
    margin: 0;
    line-height: var(--line-height-200);
}

.sales-property-address {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground1);
    margin: 0;
    line-height: var(--line-height-300);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sales-details {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacingHorizontalS);
    margin: var(--spacingVerticalXXS) 0 0 0;
}

.sales-price {
    font-weight: var(--font-weight-semibold);
    color: var(--colorStatusSuccessForeground1);
    font-size: var(--font-size-300);
    margin: 0;
}

/* Sales meta info positioned next to avatar */
.sales-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacingVerticalXXS);
    flex-shrink: 0;
    min-width: 80px;
}

.sales-type {
    font-size: var(--font-size-100);
    color: var(--colorNeutralForeground3);
    background-color: var(--colorNeutralBackground4);
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    border-radius: var(--borderRadiusSmall);
    white-space: nowrap;
    text-align: center;
}

.sales-date {
    font-size: var(--font-size-100);
    color: var(--colorNeutralForeground3);
    text-align: right;
    white-space: nowrap;
    margin: 0;
}

.recent-sales-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalS);
}

.no-recent-sales {
    text-align: center;
    color: var(--colorNeutralForeground3);
    font-size: var(--font-size-300);
    padding: var(--spacingVerticalXXL);
    background-color: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusMedium);
}

.no-recent-sales i {
    font-size: 32px;
    margin-bottom: var(--spacingVerticalS);
    color: var(--colorNeutralForeground4);
    opacity: 0.5;
}

/* ============== NEARBY SEARCH STYLES ============== */
.nearby-search-form {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    margin-bottom: var(--spacingVerticalL);
}

/* Form Sections */
.form-section {
    margin-bottom: var(--spacingVerticalXXL);
    padding: var(--spacingVerticalXL);
    background: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusLarge);
    border: 1px solid var(--colorNeutralStroke2);
}

.form-section h3 {
    margin: 0 0 var(--spacingVerticalL) 0;
    color: var(--colorNeutralForeground1);
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    padding-bottom: var(--spacingVerticalM);
}

.add-property-form .form-section {
    background: var(--colorNeutralBackground1);
}

/* Property Tabs */
.property-tabs {
    display: flex;
    gap: var(--spacingHorizontalXS);
    margin-bottom: var(--spacingVerticalL);
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

.property-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    cursor: pointer;
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-medium);
    color: var(--colorNeutralForeground2);
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    transition: all var(--durationFast) var(--curveEasyEase);
    border-radius: var(--borderRadiusMedium) var(--borderRadiusMedium) 0 0;
}

.property-tab-btn:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.property-tab-btn.active {
    color: var(--colorBrandForeground1);
    border-bottom-color: var(--colorBrandForeground1);
    background-color: var(--colorNeutralBackground2);
}

.property-tab-btn i {
    font-size: 18px;
}

.property-tab-content {
  
    border-radius: 0 0 var(--borderRadiusLarge) var(--borderRadiusLarge);
    min-height: 500px;
    overflow: visible;
}

.property-tab-pane {
    display: none;
    /* padding: var(--spacingVerticalXXL); */
}

.property-tab-pane.active {
    display: block;
}

/* Form Layout - Grid System */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group,
.row-3 .form-group {
    margin-bottom: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacingVerticalXS);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    font-size: var(--font-size-300);
}

.form-group input,
.form-group select,
.form-group textarea {

    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    background-color: var(--colorNeutralBackground1);
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground1);
    transition: all var(--durationNormal) var(--curveEasyEase);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--colorBrandForeground1);
    box-shadow: 0 0 0 1px var(--colorBrandForeground1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.nearby-statistics {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    margin-bottom: var(--spacingVerticalL);
}

.statistics-header {
    margin-bottom: var(--spacingVerticalL);
}

.statistics-header h3 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalS) 0;
}

.statistics-description {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
    margin: 0;
}

.statistics-table {
    overflow-x: auto;
}

.nearby-results {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacingVerticalL);
}

.results-header h3 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0;
}

.results-count {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
    background-color: var(--colorNeutralBackground3);
    padding: var(--spacingVerticalXS) var(--spacingHorizontalS);
    border-radius: var(--borderRadiusLarge);
}

/* ============== RESPONSIVE IMPROVEMENTS ============== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacingHorizontalL);
    }
    
    .properties-grid,
    #recentlyAddedContainer,
    .recently-added-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
    
    .date-group-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .properties-grid,
    #recentlyAddedContainer,
    .recently-added-container {
        grid-template-columns: 1fr !important;
    }
    
    .date-group-grid {
        grid-template-columns: 1fr;
    }
    
    .date-group-header {
        padding: var(--spacingVerticalS) var(--spacingHorizontalM);
        font-size: var(--font-size-300);
    }
    
    .date-group-header i {
        font-size: var(--font-size-400);
    }
    
    .group-count {
        font-size: var(--font-size-200);
    }
    
    .row-3 {
        grid-template-columns: 1fr;
    }
    
    .property-post {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    #propertiesFeed,
    .feed-container {
        padding: var(--spacingVerticalM) var(--spacingHorizontalS);
    }
    
    .sidebar-stats {
        gap: var(--spacingVerticalS);
    }
    
    .sidebar-stat-item {
        padding: var(--spacingVerticalS);
    }
    
    .sidebar-stat-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .sidebar-stat-info h4 {
        font-size: var(--font-size-400);
    }
    
    .sales-meta {
        min-width: 70px;
    }
    
    .sales-type {
        font-size: var(--font-size-100);
        padding: 2px var(--spacingHorizontalXXS);
    }
    
    .sales-date {
        font-size: 10px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: var(--spacingVerticalM);
        text-align: center;
    }
    
    .kanban-columns {
        flex-direction: column;
    }
    
    .kanban-column {
        min-width: auto;
        max-width: none;
    }
    
    /* Mobile responsive for table view */
    .properties-table {
        overflow-x: auto;
        border-radius: var(--borderRadiusMedium);
    }
    
    .properties-table table {
        min-width: 800px;
    }
    
    .properties-table th,
    .properties-table td {
        padding: var(--spacingVerticalS) var(--spacingHorizontalS);
        font-size: var(--font-size-200);
    }
    
    .property-table-image {
        width: 32px;
        height: 32px;
    }
    
    .property-table-title {
        font-size: var(--font-size-200);
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .property-table-address {
        font-size: var(--font-size-100);
        max-width: 150px;
    }
    
    .property-table-features {
        font-size: var(--font-size-100);
    }
    
    .property-table-broker-avatar {
        width: 20px;
        height: 20px;
    }
    
    .property-table-broker-name {
        font-size: var(--font-size-100);
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .property-table-actions .action-btn {
        min-width: 80px;
        padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
        font-size: var(--font-size-100);
    }
    
    /* Hide header content on very small screens and stack */
    .page-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacingVerticalM);
    }
    
    .page-header-content h1 {
        font-size: var(--font-size-500);
        text-align: center;
    }
    
    .view-toggle-container {
        flex-direction: column;
        gap: var(--spacingVerticalM);
    }
    
    .view-toggle-buttons {
        justify-content: center;
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacingVerticalXS);
    }
    
    .sort-controls label {
        text-align: center;
    }
    
    .sort-select {
        width: 100%;
    }
}

/* ============== FOCUS MANAGEMENT ============== */
.focus-visible:focus-visible {
    outline: 2px solid var(--colorBrandForeground1);
    outline-offset: 2px;
}

/* Remove default focus styles for mouse users */
*:focus:not(.focus-visible) {
    outline: none;
}

/* ============== COLLECTIONS STYLES ============== */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacingVerticalL);
    max-width: 1200px;
    margin: 0 auto;
}

.collection-card {
    background: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL) var(--spacingHorizontalL);
    transition: all var(--durationNormal) var(--curveEasyEase);
    box-shadow: var(--shadow2);
    width: 100%;
    box-sizing: border-box;
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow8);
    border-color: var(--colorBrandStroke1);
}

.collection-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacingHorizontalM);
    margin-bottom: var(--spacingVerticalL);
}

.collection-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--colorBrandBackground) 0%, var(--colorBrandBackground2) 100%);
    border-radius: var(--borderRadiusMedium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 24px;
}

.collection-info {
    flex: 1;
    min-width: 0;
}

.collection-name {
    margin: 0 0 var(--spacingVerticalS) 0;
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    word-wrap: break-word;
}

.collection-description {
    margin: 0 0 var(--spacingVerticalS) 0;
    color: var(--colorNeutralForeground2);
    font-size: var(--font-size-300);
    line-height: 1.4;
    word-wrap: break-word;
}

.collection-id {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    font-family: monospace;
}

.collection-actions {
    display: flex;
    gap: var(--spacingHorizontalS);
    flex-wrap: wrap;
}

.collection-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.no-collections {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacingVerticalXXXL) var(--spacingHorizontalL);
    color: var(--colorNeutralForeground2);
}

.no-collections i {
    font-size: 4rem;
    margin-bottom: var(--spacingVerticalL);
    color: var(--colorNeutralForeground3);
}

.no-collections h3 {
    margin: 0 0 var(--spacingVerticalM) 0;
    font-size: var(--font-size-600);
    color: var(--colorNeutralForeground1);
}

.no-collections p {
    margin: 0;
    font-size: var(--font-size-400);
}

/* Responsive design for collections */
@media (max-width: 768px) {
    .collections-grid {
        gap: var(--spacingVerticalM);
    }
    
    .collection-card {
        padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    }
    
    .collection-header {
        gap: var(--spacingHorizontalS);
    }
    
    .collection-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .collection-actions {
        flex-direction: column;
    }
    
    .collection-actions .btn {
        width: 100%;
    }
}

/* ============== CLIENT AUTOSEARCH STYLES ============== */
.autosearch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacingVerticalL);
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    background-color: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusMedium);
}

.autosearch-header h3 {
    margin: 0;
    font-size: var(--font-size-500);
    font-weight: var(--fontWeightSemibold);
    color: var(--colorNeutralForeground1);
}

.autosearch-table-container {
    overflow-x: auto;
    background-color: var(--colorNeutralBackground1);
    border-radius: var(--borderRadiusMedium);
    box-shadow: var(--shadow4);
}

.autosearch-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-300);
}

.autosearch-results-table thead {
    background-color: var(--colorNeutralBackground2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.autosearch-results-table th {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    text-align: left;
    font-weight: var(--fontWeightSemibold);
    color: var(--colorNeutralForeground2);
    border-bottom: 2px solid var(--colorNeutralStroke1);
}

.autosearch-results-table tbody tr {
    border-bottom: 1px solid var(--colorNeutralStroke2);
    transition: background-color 0.2s ease;
}

.autosearch-results-table tbody tr:hover {
    background-color: var(--colorNeutralBackground2Hover);
}

.autosearch-results-table td {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    vertical-align: middle;
}

.property-photo-cell {
    width: 80px;
}

.property-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--borderRadiusSmall);
}

.no-photo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--colorNeutralBackground3);
    border-radius: var(--borderRadiusSmall);
    color: var(--colorNeutralForeground3);
    font-size: 24px;
}

/* Autosearch tiles layout */
.autosearch-tiles-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.autosearch-tiles-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--colorNeutralForeground2);
    border-bottom: 2px solid var(--colorNeutralStroke1);
    background: var(--colorNeutralBackground2);
    border-radius: 8px 8px 0 0;
}

.autosearch-tile {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.autosearch-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--colorBrandStroke1, #0078d4);
}

.autosearch-tile.rejected-property {
    opacity: 0.6;
    background: var(--colorNeutralBackground3, #f5f5f5);
}

.astile-col {
    display: flex;
    align-items: center;
}

.astile-col-photo {
    width: 80px;
    flex-shrink: 0;
}

.astile-col-address {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
}

.astile-col-rooms {
    width: 48px;
    flex-shrink: 0;
    justify-content: center;
}

.astile-col-area {
    width: 80px;
    flex-shrink: 0;
    justify-content: center;
}

.astile-col-price {
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
}

.astile-col-actions {
    width: 190px;
    flex-shrink: 0;
    align-items: flex-end;
    gap: 6px;
    display: flex;
    flex-direction: column;
}

.astile-col-actions .btn {
    white-space: nowrap;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.property-title-cell {
    min-width: 200px;
    max-width: 300px;
}

.property-link {
    color: var(--colorBrandForeground1);
    text-decoration: none;
    font-weight: var(--fontWeightSemibold);
}

.property-link:hover {
    text-decoration: underline;
}

.property-address-cell {
    min-width: 150px;
    max-width: 250px;
    color: var(--colorNeutralForeground2);
}

.property-type-cell,
.property-rooms-cell,
.property-area-cell {
    white-space: nowrap;
}

.property-price-cell {
    font-weight: var(--fontWeightSemibold);
    color: var(--colorNeutralForeground1);
    white-space: nowrap;
}

.property-status-cell .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-200);
    font-weight: var(--fontWeightSemibold);
}

.status-badge.status-active {
    background-color: var(--colorPaletteGreenBackground2);
    color: var(--colorPaletteGreenForeground2);
}

.status-badge.status-sold {
    background-color: var(--colorPaletteRedBackground2);
    color: var(--colorPaletteRedForeground2);
}

.status-badge.status-archived {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground3);
}

.status-badge.status-draft {
    background-color: var(--colorPaletteYellowBackground2);
    color: var(--colorPaletteYellowForeground2);
}

.property-actions-cell {
    min-width: 280px;
}

.property-actions-buttons {
    display: flex;
    gap: var(--spacingHorizontalS);
}

.property-actions-buttons .btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-200);
    white-space: nowrap;
}

/* Loading and empty states */
.loading-state,
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacingVerticalXXXL);
    text-align: center;
    color: var(--colorNeutralForeground2);
}

.loading-state i,
.empty-state i,
.error-state i {
    font-size: 48px;
    margin-bottom: var(--spacingVerticalL);
    color: var(--colorNeutralForeground3);
}

.loading-state i.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.empty-state p,
.error-state p {
    margin: 0 0 var(--spacingVerticalL) 0;
    font-size: var(--font-size-400);
}

/* Rejected property styling */
.rejected-property {
    background-color: var(--colorNeutralBackground4) !important;
    opacity: 0.7;
}

.rejected-property td {
    color: var(--colorNeutralForeground3) !important;
}

.rejected-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: var(--borderRadiusSmall);
    background-color: var(--colorNeutralBackground5);
    color: var(--colorNeutralForeground3);
    font-size: var(--font-size-200);
    font-weight: var(--fontWeightSemibold);
    text-transform: uppercase;
}

.error-state i {
    color: var(--colorPaletteRedForeground1);
}

/* Responsive table */
@media (max-width: 1200px) {
    .autosearch-results-table {
        font-size: var(--font-size-200);
    }
    
    .property-actions-buttons {
        flex-direction: column;
    }
    
    .property-actions-buttons .btn-sm {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .autosearch-header {
        flex-direction: column;
        gap: var(--spacingVerticalM);
        align-items: stretch;
    }
    
    .autosearch-table-container {
        overflow-x: scroll;
    }
    
    .autosearch-results-table {
        min-width: 900px;
    }
}

/* ============== PRINT STYLES ============== */
@media print {
    .sidebar,
    .top-header,
    .pagination-controls,
    .property-actions,
    .action-dropdown-menu {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .property-card,
    .property-post {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============== AGENT FILTER STYLES ============== */
.agent-filter-agency {
    margin-bottom: 20px;
    border: 2px solid #0078d4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.1);
    background: white;
}

.agent-filter-agency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    border-bottom: 2px solid #005a9e;
}

.agent-filter-agency-header input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.agent-filter-agency-name {
    font-weight: 700;
    color: white;
    margin: 0;
    font-size: 16px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agent-filter-agents {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.agent-filter-agent {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    padding-left: 24px;
    margin: 4px 0;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #0078d4;
    transition: all 0.2s ease;
}

.agent-filter-agent:hover {
    background: #f0f8ff;
    border-left-color: #005a9e;
    box-shadow: 0 1px 4px rgba(0, 120, 212, 0.15);
}

.agent-filter-agent input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agent-filter-agent-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Enhanced Agent Filter Styles for user agency */
.agent-filter-agency.user-agency {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.agent-filter-agency.user-properties {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.agent-filter-agency.user-agency .agent-filter-agency-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-bottom-color: #1e7e34;
}

.agent-filter-agency.user-properties .agent-filter-agency-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-bottom-color: #1e7e34;
}

.user-agency-name {
    font-weight: 700;
    color: white;
}

.agent-filter-agency.user-agency .agent-filter-agent {
    border-left-color: #28a745;
}

.agent-filter-agency.user-agency .agent-filter-agent:hover {
    background: #f0fff0;
    border-left-color: #1e7e34;
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.15);
}

/* MLS Options Styles */
.agent-filter-mls-options {
    padding: 12px 20px;
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
}

.agent-filter-mls-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    padding-left: 24px;
    margin: 4px 0;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    transition: all 0.2s ease;
}

.agent-filter-mls-option:hover {
    background: #fffbf0;
    border-left-color: #ff9800;
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.15);
}

.agent-filter-mls-option input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agent-filter-mls-name {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ============== AGENTS PAGE STYLES ============== */
.agents-agency {
    margin-bottom: 30px;
}

.agents-agency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.agents-agency-name {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agents-agency-count {
    color: white;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px 20px 20px;
}

.agent-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 120, 212, 0.15);
    border-color: #0078d4;
}

.agent-photo-container {
    margin-bottom: 16px;
}

.agent-photo-container a {
    display: block;
    text-decoration: none;
}

.agent-photo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #0078d4 !important;
    display: block !important;
}

.agent-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #999;
    border: 3px solid #e9ecef;
}

.agent-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    text-decoration: none;
    display: block;
}

.agent-name:hover {
    color: #0078d4;
    text-decoration: none;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.agent-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.agent-phone i {
    font-size: 14px;
    color: #0078d4;
}

.agents-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.agents-no-results i {
    font-size: 64px;
    color: #e9ecef;
    margin-bottom: 16px;
    display: block;
}

.agents-no-results h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 8px 0;
}

.agents-no-results p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Responsive design for agents page */
@media (max-width: 768px) {
    .agents-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 16px 16px;
    }
    
    .agents-agency-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    #agentSearch {
        width: 100% !important;
    }
}

/* Agent search input width */
#agentSearch {
    width: 300px;
    min-width: 300px;
}

/* Photo preview grid styling */
.photo-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 16px !important;
}

.photo-preview-card {
    position: relative;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
    transition: all 0.2s ease;
}

.photo-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-preview-card.dragging {
    opacity: 0.6;
    transform: rotate(5deg);
}

.photo-preview-image {
    width: 100% !important;
    height: 80px !important;
    object-fit: cover !important;
    display: block !important;
}

.photo-preview-info {
    padding: 8px;
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
}

.photo-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.photo-type-badge.photo {
    background: #e3f2fd;
    color: #1976d2;
}

.photo-type-badge.plan {
    background: #f3e5f5;
    color: #7b1fa2;
}

.photo-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}

.photo-delete-btn:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* ============== MODAL OVERLAY & BASE STYLES ============== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

.modal.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2,
.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* ============== COLLECTION MODAL SPECIFIC STYLES ============== */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.collection-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.collection-modal .modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collection-modal .modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-modal .modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.collection-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.collection-modal .modal-content {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.collection-section {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.collection-section:hover {
    border-color: #007bff;
}

.collection-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-section h3 i {
    color: #007bff;
    font-size: 18px;
}

.collection-section .form-group {
    margin-bottom: 16px;
}

.collection-section .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.collection-section .form-select,
.collection-section .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Mont', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.collection-section .form-select:focus,
.collection-section .form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.collection-section .btn {
    width: 100%;
    padding: 12px 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.collection-section .btn-primary {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.collection-section .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.collection-section .btn-success {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
}

.collection-section .btn-success:hover {
    background: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.collection-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.collection-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.collection-divider span {
    background: white;
    padding: 0 16px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Form elements if not defined */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
