/* Font Definitions */
@font-face {
    font-family: 'e-Ukraine';
    src: url('fonts/e-Ukraine-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'e-Ukraine';
    src: url('fonts/e-Ukraine-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'e-Ukraine';
    src: url('fonts/e-Ukraine-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'e-Ukraine';
    src: url('fonts/e-Ukraine-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'e-UkraineHead';
    src: url('fonts/e-UkraineHead-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'e-UkraineHead';
    src: url('fonts/e-UkraineHead-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'e-UkraineHead';
    src: url('fonts/e-UkraineHead-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============== GLOBAL CHECKBOX STANDARDIZATION ============== */
/* All checkboxes in the application must be exactly 16x16 pixels */
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 !important;
}

.mycontent
{
    max-width: 1300px;
    margin: 0 auto !important;
}

body {
    font-family: 'e-Ukraine', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* Typography - Use Ukrainian fonts for all headings and key elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'e-UkraineHead', 'e-Ukraine', sans-serif;
}

.sidebar-header h2 {
    font-family: 'e-UkraineHead', 'e-Ukraine', sans-serif;
}

.page-header h1 {
    font-family: 'e-UkraineHead', 'e-Ukraine', sans-serif;
}

.stat-info h3 {
    font-family: 'e-UkraineHead', 'e-Ukraine', sans-serif;
}

.card-header h3 {
    font-family: 'e-UkraineHead', 'e-Ukraine', sans-serif;
}

.property-card h3,
.client-card h3,
.lead-card h3,
.agent-card h3 {
    font-family: 'e-UkraineHead', 'e-Ukraine', sans-serif;
}

.property-title {
    font-family: 'e-UkraineHead', 'e-Ukraine', sans-serif;
}

button,
.btn {
    font-family: 'e-Ukraine', sans-serif;
}

input,
select,
textarea {
    font-family: 'e-Ukraine', sans-serif;
}

.tab-btn {
    font-family: 'e-Ukraine', sans-serif;
}

/* Layout */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background-color: #ffffff;
    color: #000000;
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid #e5e5e5;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-svg {
    max-width: 160px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.sidebar-header i {
    margin-right: 10px;
    color: #000000;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #000000;
}

.nav-link.active {
    background-color: #000000;
    color: #ffffff;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
}

/* Sidebar Status Panel */
.sidebar-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-item i {
    color: #666;
    font-size: 14px;
}

.status-info {
    flex: 1;
}

.status-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-time {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3e%3ccircle fill='rgb(0 0 0 / 0.2)' id='pattern-circle' cx='10' cy='10' r='1.6257413380501518'%3e%3c/circle%3e%3c/svg%3e");
    /* display: none; */
}

.main-content.active {
    display: block;
}

/* Page Content */
.page-content {
    max-width: 1260px;
    margin:0 auto  !important;
    display: none;
    padding: 30px;
    background: white;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-content.active {
    display: block;
}

.page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.page-header h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.page-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    background-color: #f8f9fa;
}

.search-container input:focus {
    outline: none;
    border-color: #000;
    background-color: #ffffff;
}

/* Search Dropdown Styles */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-dropdown.hidden {
    display: none;
}

.search-dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-dropdown-item:hover {
    background-color: #f8f9fa;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item .property-info {
    flex: 1;
}

.search-dropdown-item .property-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.search-dropdown-item .property-address {
    color: #666;
    font-size: 12px;
    margin-bottom: 2px;
}

.search-dropdown-item .property-price {
    color: #007bff;
    font-weight: 500;
    font-size: 12px;
}

.search-dropdown-empty {
    padding: 20px 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-icon:hover {
    background-color: #f0f0f0;
}

/* Text Button Styles */
.btn-text {
    background: none;
    border: none;
    padding: 6px 12px;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: auto;
}

/* Logout Button Styles */
.logout-btn {
    color: #dc3545 !important;
}

.logout-btn:hover {
    background-color: #ffebee !important;
    color: #c62828 !important;
}

/* Refresh Data Button Styles */
.refresh-data-btn {
    color: #007bff !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.refresh-data-btn:hover {
    background-color: #e3f2fd !important;
    color: #0056b3 !important;
}

.refresh-data-btn i {
    font-size: 16px;
}

/* Pages */
.page {
    display: none;
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

#properties .page-header {
    background-image: url('img/bg-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.page.active {
    display: block;

}



.page-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #000;
}

/* Properties page specific header styling */
#properties .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#properties .page-header h1 {
    margin-bottom: 0;
}

#properties .page-header .btn {
    position: absolute;
    top: 0;
    right: 0;
}

#my-properties .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#my-properties .page-header h1 {
    margin-bottom: 0;
}

#my-properties .page-header .btn {
    position: absolute;
    top: 0;
    right: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: box-shadow 0.3s ease;
}

.stat-card:first-child,
.stat-card:nth-child(2),
.stat-card:nth-child(3) {
    background-image: url('img/card-bg1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Properties Feed */
.properties-feed {
    background: transparent;
    display: flex;
    justify-content: center;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 100%;
}

/* Property Card - Facebook Style */
.property-post {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.property-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name {
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

.agency-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.agent-lastcomment {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.property-address i {
    font-size: 13px;
    color: #e53935;
    vertical-align: middle;
    margin-right: 2px;
}

.property-feed-desc {
    font-size: 13px;
    color: #555;
    margin: 4px 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-image .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 48px;
}

.image-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    align-items: flex-start;
}

.price-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mls-badge {
    background: #ff6b35;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    white-space: nowrap;
    min-width: fit-content;
}




.type-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.property-address {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.property-details {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0;
}

.property-details .rooms,
.property-details .area,
.property-details .landsize {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.property-added-date {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-added-date i {
    font-size: 14px;
}

.property-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.price-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.price-per-sqft {
    font-size: 14px;
    color: #666;
}

.property-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background-color: #e3f2fd;
    color: #1976d2;
}

.property-address {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.feature-item i {
    width: 16px;
    color: #999;
}

.property-description {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.post-actions {
    border-top: 1px solid #e5e5e5;
    padding: 12px 0;
    display: flex;
    gap: 30px;
}

.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #f0f0f0;
}

.action-btn.like:hover {
    color: #e91e63;
}

.action-btn.comment:hover {
    color: #2196f3;
}

.action-btn.share:hover {
    color: #4caf50;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.card-content {
    padding: 20px;
}

.lead-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.lead-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.lead-info {
    flex: 1;
}

.lead-name {
    font-weight: 500;
    font-size: 14px;
    color: #000;
    margin-bottom: 2px;
}

.lead-email {
    font-size: 12px;
    color: #666;
}

/* Recent Sales */
.recent-sales-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sales-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    color: #666;
}

.sales-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border-left: 3px solid #28a745;
}

.sales-broker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    overflow: hidden;
}

.sales-broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sales-info {
    flex: 1;
    min-width: 0;
}

.sales-broker-name {
    font-weight: 500;
    font-size: 12px;
    color: #28a745;
    margin-bottom: 2px;
}

.sales-property-address {
    font-size: 13px;
    color: #000;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sales-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sales-price {
    font-weight: 600;
    color: #28a745;
    font-size: 14px;
}

.sales-type {
    font-size: 11px;
    color: #666;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.sales-date {
    font-size: 11px;
    color: #666;
    text-align: right;
}

.no-recent-sales {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 20px;
}

.no-recent-sales i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #ccc;
}

/* Recently Added Properties */
.recently-added-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.date-group {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.date-group-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.date-group-header.today {
    background: #e8f5e8;
    color: #28a745;
    border-bottom-color: #c3e6cb;
}

.date-group-header.yesterday {
    background: #fff3cd;
    color: #856404;
    border-bottom-color: #ffeaa7;
}

.group-count {
    font-weight: normal;
    opacity: 0.8;
    margin-left: 8px;
}

.date-group-content {
    padding: 20px;
}

.date-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #000000;
    border: 1px solid #e5e5e5;
    justify-content: center;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

/* Property Tabs */
.property-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #000;
    background-color: #f8f9fa;
}

.tab-btn.active {
    color: #000;
    border-bottom-color: #000;
    background-color: #fff;
}

.tab-btn.active:hover {
    background-color: #fff;
}

.property-tabs select {
    margin-top: 8px;
    margin-right: 10px;
    padding: 8px 12px;
    border: 0px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
    background-color: transparent;
    margin-left: 10px;
    height: 36px;
}

.property-tabs select:focus {
    outline: none;
    border-color: #000;
}

/* Property Filters */
.property-filters {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.clear-filters-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'e-Ukraine', sans-serif;
    transition: color 0.3s ease;
}

.clear-filters-btn:hover {
    color: #000;
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 15px;
    width: 100%;
}

.filter-row:first-child {
    margin-top: 40px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-row .filter-group {
    flex: 1 1 0;
    min-width: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    font-family: 'e-Ukraine', sans-serif;
}

.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    font-family: 'e-Ukraine', sans-serif;
}

.filter-group input:focus {
    outline: none;
    border-color: #000;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 120px;
    font-family: 'e-Ukraine', sans-serif;
    background-color: white;
}

.filter-group select:focus {
    outline: none;
    border-color: #000;
}

.filter-group button {
    margin-top: 0;
}

/* Places Filter */
.places-filter {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.places-filter-header,
.postanova-filter-header,
.conditions-filter-header,
.subtypes-filter-header,
.heating-filter-header,
.documents-filter-header,
.developers-filter-header {
    margin-bottom: 15px;
}

.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: 8px;
}

/* Toggle filter buttons - ensure 100% width */
#togglePlacesBtn,
#togglePostanovaBtn,
#toggleConditionsBtn,
#toggleSubtypesBtn,
#toggleHeatingBtn,
#toggleDocumentsBtn,
#toggleDevelopersBtn,
#an_togglePlacesBtn,
#an_toggleConditionsBtn {
    width: 100% !important;
}

.places-filter h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: 'e-UkraineHead', sans-serif;
}

.places-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.place-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
}

.place-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.place-checkbox label {
    cursor: pointer;
    color: #333;
    user-select: none;
}

/* Grids */
.properties-grid,
.clients-grid,
.leads-grid,
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Property Card in Grid */
.property-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 550px;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 32px;
    position: relative;
}

.property-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 62px;
}

.property-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.property-card-address {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 34px;
}

.property-card-features {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-top: auto;
}

/* Client, Lead and Agent Cards */
.client-card,
.lead-card,
.agent-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.client-card:hover,
.lead-card:hover,
.agent-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.client-card h3,
.lead-card h3,
.agent-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.client-card p,
.lead-card p,
.agent-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Agent specific styles */
.agent-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    font-weight: 600;
}

.agent-info h3 {
    margin-bottom: 5px;
}

.agent-license {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.agent-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.agent-status.active {
    background-color: #e8f5e8;
    color: #2d7d32;
}

.agent-status.inactive {
    background-color: #f5f5f5;
    color: #757575;
}

.agent-specialization {
    background-color: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.agent-bio {
    font-style: italic;
    line-height: 1.4;
    margin-top: 10px;
}

/* Search Filter Section */
.search-filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-filter-section .search-container {
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-row select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 150px;
}

/* Modals */
.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: flex-start;
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: none;
    margin: auto;
}

.modal.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.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;
}

.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-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;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3e%3ccircle fill='rgb(0 0 0 / 0.2)' id='pattern-circle' cx='10' cy='10' r='1.6257413380501518'%3e%3c/circle%3e%3c/svg%3e")
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Conditions Filter Styles */
.conditions-filter {
    margin-bottom: 20px;
}

.conditions-filter-header {
    margin-bottom: 10px;
}

.conditions-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.condition-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
}

.condition-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.condition-checkbox label {
    cursor: pointer;
    color: #333;
}

/* Subtypes Filter Styles */
.subtypes-filter {
    margin-bottom: 20px;
}

.subtypes-filter-header {
    margin-bottom: 10px;
}

.subtypes-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.subtype-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
}

.subtype-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Heating Filter Styles */
.heating-filter {
    margin-bottom: 20px;
}

.heating-filter-header {
    margin-bottom: 10px;
}

.heating-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.heating-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
}

.heating-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.heating-checkbox label {
    cursor: pointer;
    color: #333;
}

.subtype-checkbox label {
    cursor: pointer;
    color: #333;
}

/* Documents Filter Styles */
.documents-filter {
    margin-bottom: 20px;
}

.documents-filter-header {
    margin-bottom: 10px;
}

.documents-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.documents-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
}

.documents-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.documents-checkbox label {
    cursor: pointer;
    color: #333;
}

/* Landsize Filter Styles */
.landsize-filter {
    display: none;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: #333;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-content h3 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
    font-family: 'e-UkraineHead', sans-serif;
}

.loading-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    font-family: 'e-Ukraine', sans-serif;
}

.loading-screen.hidden {
    display: none;
}

/* Hidden class for modal states */
.hidden {
    display: none !important;
}

/* Pagination Styles */
.pagination-controls {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e5e5e5;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-family: 'e-Ukraine', sans-serif;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    min-width: 120px;
}

.pagination-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'e-Ukraine', sans-serif;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: #f8f9fa;
    border-color: #000;
    color: #000;
}

.page-number.active {
    background: #000;
    color: white;
    border-color: #000;
}

.page-number.active:hover {
    background: #333;
}

.page-ellipsis {
    padding: 8px 12px;
    color: #666;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-family: 'e-UkraineHead', sans-serif;
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #000;
}

.auth-header p {
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.auth-form input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'e-Ukraine', sans-serif;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #000;
}

.auth-btn {
    padding: 12px 24px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'e-Ukraine', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
}

.auth-btn:hover {
    background: #333;
}

.auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.auth-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.auth-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
    border: 1px solid #ef9a9a;
}

/* Checkbox Styles for Remember Me */
.checkbox-container {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    color: #333;
    user-select: none;
    flex-direction: row !important;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.checkbox-container input[type="checkbox"]:checked {
    background: #000;
    border-color: #000;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-container input[type="checkbox"]:focus {
    outline: none;
    border-color: #000;
}

/* Developers Filter Styles */
.developers-filter-section {
    margin-bottom: 20px;
}

.developers-filter-header {
    margin-bottom: 10px;
}

.developers-filter-header .btn {
    width: 200px;
    text-align: center;
    justify-content: center;
}

.developers-selects {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    display: flex;
    gap: 20px;
}

.developer-select-group,
.complex-select-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.developer-select-group label,
.complex-select-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: 'e-Ukraine', sans-serif;
}

.developer-select-group select,
.complex-select-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
    background-color: white;
    cursor: pointer;
}

.developer-select-group select:focus,
.complex-select-group select:focus {
    outline: none;
    border-color: #000;
}

.developer-select-group select:disabled,
.complex-select-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Agents Filter Styles */
.agents-filter-section {
    margin-bottom: 20px;
}

.agents-filter-header {
    margin-bottom: 10px;
}

.agents-filter-header .btn {
    width: 200px;
    text-align: center;
    justify-content: center;
}

.agents-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.agent-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
}

.agent-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agent-checkbox label {
    cursor: pointer;
    color: #333;
    user-select: none;
}

/* User Avatar Styles */
.user-avatar-btn {
    padding: 0;
    border: none;
    background: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f0f0f0;
    transition: transform 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar i {
    font-size: 20px;
    color: #666;
}

/* Price Difference Badge */
.price-difference-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* MLS Commission Badge - старі стилі закоментовані, використовується стиль з .image-badges */
/* .mls-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} */

.property-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* My Properties Filters - exact copy of main properties filters */
#my-properties .property-filters {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

#my-properties .clear-filters-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'e-Ukraine', sans-serif;
    transition: color 0.3s ease;
}

#my-properties .clear-filters-btn:hover {
    color: #000;
}

#my-properties .filter-row {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 15px;
    width: 100%;
    flex-wrap: wrap;
}

#my-properties .filter-row:first-child {
    margin-top: 40px;
}

#my-properties .filter-row:last-child {
    margin-bottom: 0;
}

#my-properties .filter-row .filter-group {
    flex: 1 1 0;
    min-width: 0;
}

#my-properties .filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#my-properties .filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    font-family: 'e-Ukraine', sans-serif;
}

#my-properties .filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    font-family: 'e-Ukraine', sans-serif;
}

#my-properties .filter-group input:focus {
    outline: none;
    border-color: #000;
}

#my-properties .filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 120px;
    font-family: 'e-Ukraine', sans-serif;
    background-color: white;
}

#my-properties .filter-group select:focus {
    outline: none;
    border-color: #000;
}

#my-properties .btn-secondary {
    background-color: #f8f9fa;
    color: #000000;
    border: 1px solid #e5e5e5;
    width: 200px;
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#my-properties .btn-secondary:hover {
    background-color: #e9ecef;
}

#my-properties .btn-secondary.active {
    background-color: #000;
    color: #fff;
}

/* My Properties Checkboxes */
#my-properties .places-checkboxes,
#my-properties .conditions-checkboxes,
#my-properties .subtypes-checkboxes,
#my-properties .heating-checkboxes,
#my-properties .documents-checkboxes,
#my-properties .agents-checkboxes {

    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 15px;
}

#my-properties .place-checkbox,
#my-properties .condition-checkbox,
#my-properties .subtype-checkbox,
#my-properties .heating-checkbox,
#my-properties .documents-checkbox,
#my-properties .agent-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
}

#my-properties .place-checkbox input[type="checkbox"],
#my-properties .condition-checkbox input[type="checkbox"],
#my-properties .subtype-checkbox input[type="checkbox"],
#my-properties .heating-checkbox input[type="checkbox"],
#my-properties .documents-checkbox input[type="checkbox"],
#my-properties .agent-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#my-properties .place-checkbox label,
#my-properties .condition-checkbox label,
#my-properties .subtype-checkbox label,
#my-properties .heating-checkbox label,
#my-properties .documents-checkbox label,
#my-properties .agent-checkbox label {
    cursor: pointer;
    color: #333;
    user-select: none;
}

#my-properties .conditions-filter-section,
#my-properties .subtypes-filter-section,
#my-properties .heating-filter-section,
#my-properties .documents-filter-section,
#my-properties .agents-filter-section {
    margin-bottom: 20px;
}

#my-properties .developers-selects {
    display: none;
    margin-top: 15px;
}

#my-properties .developers-selects .filter-row {
    margin-bottom: 0;
}

/* Property Broker Info */
.property-broker-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.broker-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broker-avatar i {
    font-size: 14px;
    color: #666;
}

.broker-details {
    flex: 1;
}

.broker-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.broker-agency {
    font-size: 11px;
    color: #666;
}

/* Property Actions */
.property-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background-color: #fafafa;
    position: relative;
}

/* Dropdown Styles */
.dropdown-container {
    position: relative;
}

.dropdown-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.dropdown-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.action-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 280px;
    padding: 8px 0;
    margin-bottom: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item i {
    width: 16px;
    color: #666;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.action-btn {
    width: 80px;
    text-align: center;

    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

.action-btn i {
    font-size: 11px;
}

.clone-btn:hover {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.collection-btn:hover {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #f57c00;
}

.edit-btn:hover {
    background-color: #e8f5e8;
    border-color: #4caf50;
    color: #388e3c;
}

.refresh-btn {
    padding: 6px 8px;
    min-width: 32px;
    justify-content: center;
}

.refresh-btn:hover {
    background-color: #f3e5f5;
    border-color: #9c27b0;
    color: #7b1fa2;
}

/* Analytics Page Styles */

.analytics-filters {
    margin: 20px 0;
    padding: 0;
}

.analytics-filters .filter-section {
    margin-bottom: 15px;
}

.analytics-filters .filter-toggle {
    width: 200px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.analytics-filters .filter-toggle:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.analytics-filters .filter-checkboxes {
    margin-top: 10px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.analytics-filters .property-type-checkbox,
.analytics-filters .places-checkbox,
.analytics-filters .conditions-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.analytics-filters .property-type-checkbox input,
.analytics-filters .places-checkbox input,
.analytics-filters .conditions-checkbox input {
    margin: 0;
    cursor: pointer;
}

.analytics-filters .property-type-checkbox label,
.analytics-filters .places-checkbox label,
.analytics-filters .conditions-checkbox label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.analytics-filters .property-type-checkbox:hover,
.analytics-filters .places-checkbox:hover,
.analytics-filters .conditions-checkbox:hover {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px;
    margin: -3px;
}

.analytics-filters .filter-actions {
    margin-top: 15px;
    text-align: center;
}

.analytics-filters .clear-filters-btn {
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.analytics-filters .clear-filters-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

.analytics-filters .clear-filters-btn:active {
    transform: translateY(0);
}

#analytics .page-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#analytics .page-header h1 {
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 600;
    color: #000;
}

#analytics .property-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

#analytics .tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

#analytics .tab-btn:hover {
    color: #000;
    background-color: #f8f9fa;
}

#analytics .tab-btn.active {
    color: #000;
    border-bottom-color: #000;
    background-color: #fff;
}

#analytics .tab-btn.active:hover {
    background-color: #fff;
}

#analytics .tab-btn i {
    font-size: 14px;
}

#analytics .property-tabs select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
    background-color: white;
    margin-left: 10px;
    height: 36px;
}

#analytics .property-tabs select:focus {
    outline: none;
    border-color: #000;
}

#analytics .analytics-container {
    margin-top: 30px;
}

#analytics .analytics-results {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 200px;
}

#analytics .analytics-property-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#analytics .analytics-property-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    background: #f9f9f9;
}

#analytics .analytics-property-item .property-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

#analytics .analytics-property-item .property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

#analytics .analytics-property-item .property-price {
    color: #28a745;
    font-weight: 600;
}

#analytics .analytics-property-item .property-area {
    color: #6c757d;
}

#analytics .analytics-property-item .property-agent {
    color: #007bff;
}

#analytics .analytics-property-item .property-address {
    color: #6c757d;
    font-size: 14px;
}

#analytics .analytics-more {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 10px;
}

.telegram-btn {
    background: #229ED9;
    color: white;
}

.viber-btn {
    background: #7360f2;
    color: white;
}

.viber-btn:hover {
    background: #6450d6
}

.phone-btn {
    background-color: #34C759;
    /* iOS Green */
    color: #fff;
}

.phone-btn:hover {
    background-color: #28a745;
    /* трохи темніше при наведенні */
}

/* Property Modal Styles */
.property-modal {
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    gap: 5px;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.tab-btn:hover {
    color: #333;
    background: #f9f9f9;
}

.tab-btn.active {
    color: #2196f3;
    border-bottom-color: #2196f3;
    background: #f8fcff;
}

.tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Manual Map Pin */
.manual-map-pin-wrapper {
    margin: 8px 0 16px 0;
}

.manual-map-pin-wrapper .btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
}

.manual-map-pin-wrapper .btn-sm:hover {
    background: #e4e4e4;
}

#manualMapCanvas {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: visible;
}

.manual-map-coords {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

/* History Tab */
.history-section {
    padding: 20px 0;
}

.history-timeline {
    margin-bottom: 30px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-date {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.timeline-content {
    flex: 1;
}

.add-history {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.add-history h4 {
    margin: 0 0 15px 0;
    color: #333;
}

/* Clients Tab */
.clients-section {
    padding: 20px 0;
}

.client-recommendations {
    margin-bottom: 30px;
}

.recommendation-card {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

.recommendation-card i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ccc;
}

.manual-client-add {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.manual-client-add h4 {
    margin: 0 0 15px 0;
    color: #333;
}

/* Listings Tab */
.listings-section {
    padding: 20px 0;
}

.listing-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.platform-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: #e0e0e0;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.platform-header i {
    font-size: 20px;
    color: #2196f3;
}

.platform-header span {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.platform-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.platform-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.listing-settings {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.listing-settings h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.listing-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.listing-settings input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Responsive Design for Property Modal */
@media (max-width: 768px) {
    .property-modal {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .listing-platforms {
        grid-template-columns: 1fr;
    }
}

/* Add Property Page Styles */
.property-tabs {
    display: flex;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
}

.property-tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.property-tab-btn:hover {
    color: #333;
    background: #f0f0f0;
}

.property-tab-btn.active {
    color: #2196f3;
    background: white;
    border-bottom-color: #2196f3;
}

.property-tab-btn i {
    font-size: 16px;
}

.property-tab-content {
    background: white;
    border-radius: 0 0 8px 8px;
    min-height: 500px;
}

.property-tab-pane {
    display: none;
    padding: 30px;
}

.property-tab-pane.active {
    display: block;
}

.add-property-form .form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.add-property-form .form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Journal Section */
.journal-section {
    padding: 24px;
    background: var(--colorNeutralBackground2);
    min-height: 400px;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--colorNeutralStroke1);
}

.journal-header h3 {
    margin: 0;
    color: var(--colorNeutralForeground1);
    font-size: 24px;
    font-weight: 600;
}

.journal-timeline {
    position: relative;
    padding-left: 30px;
}

.journal-timeline:before {
    /* content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0; */
}

.timeline-entry {
    position: relative;
    margin-bottom: 30px;
    padding-left: 25px;
}

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #2196f3;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e0e0e0;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-date {
    color: #666;
    font-size: 14px;
}

.timeline-type {
    background: #2196f3;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Clients Section */
.clients-section {
    padding: 20px 0;
}

.clients-header {
    text-align: center;
    margin-bottom: 40px;
}

.clients-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.clients-header p {
    color: #666;
    margin: 0;
}

.auto-recommendations {
    margin-bottom: 40px;
}

.recommendation-placeholder {
    background: #f9f9f9;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #ddd;
}

.recommendation-placeholder i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.recommendation-placeholder h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.recommendation-placeholder p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.assigned-clients h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.no-clients {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

/* Listings Section */
.listings-section {
    padding: 20px 0;
}

.listings-header {
    text-align: center;
    margin-bottom: 40px;
}

.listings-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.listings-header p {
    color: #666;
    margin: 0;
}

.listing-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.platform-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.platform-item:hover {
    border-color: #2196f3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.platform-card {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.platform-info i {
    font-size: 24px;
    color: #2196f3;
}

.platform-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.platform-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.platform-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.platform-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196f3;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

input:disabled + .toggle-slider {
    background-color: #4CAF50;
    cursor: not-allowed;
}

/* Page Actions */
.page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

/* Responsive Design for Add Property Page */
@media (max-width: 768px) {
    .property-tabs {
        flex-direction: column;
    }
    
    .property-tab-btn {
        justify-content: flex-start;
        padding: 12px 15px;
    }
    
    .property-tab-pane {
        padding: 20px 15px;
    }
    
    .add-property-form .form-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .listing-platforms {
        grid-template-columns: 1fr;
    }
    
    .page-actions {
        flex-direction: column;
    }
    
    .page-actions .btn {
        width: 100%;
    }
}

/* Checkbox Group Styling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-group .checkbox-label {
    margin-bottom: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    position: relative;
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: none;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: black;
    border-color: black;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 4px;
    color: white;
    font-size: 15px;
    font-weight: bold;
}

/* Photo Upload Section */
.photo-upload-section {
    margin-top: 16px;
}

.upload-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn.btn-outline {
    background: white;
    border: 2px solid #ddd;
    color: #333;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.btn-outline:hover {
    border-color: #333;
    background: #f8f8f8;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.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%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.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: 12px;
    transition: all 0.2s ease;
}

.photo-delete-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Validation styles */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2) !important;
}

.form-group.error label {
    color: #d32f2f !important;
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Auto Clients Styles */
.auto-clients-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.client-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}
.client-card
{
    margin-bottom: 16px;
}

.client-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.client-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 24px;
    flex-shrink: 0;
}

.client-info {
    flex: 1;
    min-width: 0;
}

.client-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.client-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.criteria-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.criteria-item i {
    font-size: 12px;
    color: #999;
}

.client-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
    max-height: 3em;
    overflow: hidden;
}

/* Analytics Chart Styles */
.charts-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.charts-header button {
    display: flex;
    align-items: center;
    gap: 8px;
}

.charts-content {
    transition: all 0.3s ease;
    max-height: 700px;
    overflow-y: auto;
}

.charts-content.collapsed {
    display: none;
}

.analytics-chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.analytics-chart-container h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.analytics-chart-container canvas {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
}

.analytics-chart-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #666;
}

.analytics-chart-loader .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.analytics-chart-loader p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Analytics Table Styles */
.analytics-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.analytics-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.analytics-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.analytics-table tbody tr:hover {
    background-color: #f8f9fa;
}

.analytics-table tbody tr:last-child td {
    border-bottom: none;
}

.analytics-table th:first-child,
.analytics-table td:first-child {
    padding-left: 16px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-table th:last-child,
.analytics-table td:last-child {
    padding-right: 16px;
    text-align: center;
    font-weight: 600;
}

.analytics-table td:nth-child(2),
.analytics-table td:nth-child(3),
.analytics-table td:nth-child(4),
.analytics-table td:nth-child(5),
.analytics-table td:nth-child(6) {
    text-align: center;
}

.analytics-table td:nth-child(4),
.analytics-table td:nth-child(5) {
    font-weight: 600;
    color: #2563eb;
}
   

.client-dates {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.client-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.btn-suggest {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-suggest:hover {
    background: #45a049;
}

.btn-reject {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-reject:hover {
    background: #da190b;
}

.no-clients-message {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

/* Client Timeline Styles */
.client-timeline-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.timeline-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.client-timeline {
    position: relative;
    padding-left: 40px;
}

.client-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
}

.timeline-entry {
    position: relative;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-left: 20px;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e5e5e5;
}

.timeline-entry.call::before {
    border-color: #4CAF50;
}

.timeline-entry.email::before {
    border-color: #2196F3;
}

.timeline-entry.meeting::before {
    border-color: #FF9800;
}

.timeline-entry.viewing::before {
    border-color: #9C27B0;
}

.timeline-entry.offer::before {
    border-color: #F44336;
}

.timeline-entry.negotiation::before {
    border-color: #795548;
}

.timeline-entry.contract::before {
    border-color: #607D8B;
}

.timeline-entry.feedback::before {
    border-color: #FFEB3B;
}

.timeline-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.timeline-entry-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.timeline-entry-title i {
    font-size: 16px;
}

.timeline-entry-date {
    font-size: 12px;
    color: #999;
}

.timeline-entry-client {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.timeline-entry-content {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.timeline-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.timeline-entry-status,
.timeline-entry-outcome,
.timeline-entry-next-action {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.completed {
    background: #e8f5e8;
    color: #4CAF50;
}

.status-badge.scheduled {
    background: #e3f2fd;
    color: #2196F3;
}

.status-badge.cancelled {
    background: #ffebee;
    color: #f44336;
}

.status-badge.postponed {
    background: #fff3e0;
    color: #ff9800;
}

.outcome-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.outcome-badge.positive {
    background: #e8f5e8;
    color: #4CAF50;
}

.outcome-badge.neutral {
    background: #f5f5f5;
    color: #666;
}

.outcome-badge.negative {
    background: #ffebee;
    color: #f44336;
}

.outcome-badge.interested {
    background: #e8f5e8;
    color: #4CAF50;
}

.outcome-badge.not_interested {
    background: #ffebee;
    color: #f44336;
}

.timeline-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

.timeline-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.timeline-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.timeline-action-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.timeline-action-btn.delete:hover {
    background: #f44336;
    color: white;
}

/* Clients Kanban Board Styles */
.clients-filters {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.clients-filters .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.clients-filters .form-group {
    flex: 1 1 0;
    min-width: 0;
    flex: 1;
    max-width: 160px;
}

.clients-filters .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.clients-filters .form-group input,
.clients-filters .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.clients-filters .form-group input:focus,
.clients-filters .form-group select:focus {
    outline: none;
    border-color: #2196f3;
}

/* Clients page full height layout */
#clients.page.active {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.clients-kanban-board {
    width: 100%;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.kanban-scroll-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.kanban-nav-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #495057;
}

.kanban-nav-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.kanban-nav-btn:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

.kanban-scroll-indicator {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.kanban-scroll-bar {
    height: 100%;
    background: #2196f3;
    border-radius: 2px;
    transition: transform 0.2s ease;
    width: 20%;
    transform: translateX(0);
}

.kanban-columns-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.kanban-columns {
    display: flex;
    gap: 16px;
    min-width: fit-content;
    padding: 0 4px;
    height: 100%;
}

.kanban-column {
    flex: 0 0 330px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    min-height: 400px;
    max-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kanban-column-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.kanban-column-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.kanban-column-count {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.kanban-column-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.2s ease;
    position: relative;
    overflow-y: auto;
}

.kanban-client-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.kanban-client-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.kanban-client-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.kanban-client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.kanban-client-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.kanban-client-type {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    background: #e9ecef;
    color: #6c757d;
}

.kanban-client-operation {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
}

.kanban-client-budget {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    margin: 4px 0;
}

.kanban-client-requirements {
    font-size: 11px;
    color: #666;
    margin: 4px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kanban-client-dates {
    font-size: 10px;
    color: #999;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.kanban-empty-state {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.kanban-drop-zone {
    min-height: 50px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    margin: 8px 0;
    transition: all 0.2s ease;
}

.kanban-drop-zone.drag-over {
    border-color: #2196f3;
    background: #f0f8ff;
    color: #2196f3;
}

.kanban-column-cards.drag-over {
    background: #e3f2fd;
    border: 2px dashed #2196f3;
    border-radius: 8px;
}

.kanban-column.drag-over {
    background: #f0f8ff;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Property type colors */
.kanban-client-type.apartment {
    background: #e3f2fd;
    color: #1976d2;
}

.kanban-client-type.house {
    background: #e8f5e8;
    color: #388e3c;
}

.kanban-client-type.townhouse {
    background: #fff3e0;
    color: #f57c00;
}

.kanban-client-type.commercial {
    background: #f3e5f5;
    color: #7b1fa2;
}

.kanban-client-type.land {
    background: #e0f2f1;
    color: #00695c;
}

.kanban-client-type.garage {
    background: #fce4ec;
    color: #c2185b;
}

/* Status column colors */
.kanban-column[data-status="1"] .kanban-column-count {
    background: #ff9800;
}

.kanban-column[data-status="100"] .kanban-column-count {
    background: #2196f3;
}

.kanban-column[data-status="101"] .kanban-column-count {
    background: #4caf50;
}

.kanban-column[data-status="102"] .kanban-column-count {
    background: #9c27b0;
}

.kanban-column[data-status="5"] .kanban-column-count {
    background: #757575;
}

.kanban-column[data-status="6"] .kanban-column-count {
    background: #f44336;
}

/* Agent Filter Section */
.filter-section {
    margin-top: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-section-content {
    padding: 16px;
}

.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;
}

/* Responsive design */
@media (max-width: 768px) {
    .clients-filters .filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .clients-filters .form-group {
        min-width: 100%;
    }
    
    .kanban-column {
        flex: 0 0 250px;
    }
    
    .kanban-columns {
        gap: 12px;
    }
}

/* Enhanced Agent Filter Styles */
.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-stats {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.agents-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.agents-filters .filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.agents-filters .form-group {
    flex: 1 1 0;
    min-width: 0;
}

.agents-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.agents-agency {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.agents-agency-header {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agents-agency-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.agents-agency-count {
    color: #666;
    font-size: 14px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 20px;
}

.agent-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    margin-bottom: 12px;
}

.agent-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #999;
    margin-bottom: 12px;
}

.agent-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    text-decoration: none;
}

.agent-name:hover {
    color: #007bff;
    text-decoration: none;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #666;
    font-size: 14px;
}

.agent-phone {
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-phone i {
    font-size: 12px;
}

.agents-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.agents-no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 12px;
}

/* Responsive design for agents page */
@media (max-width: 768px) {
    .agents-filters .filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .agents-filters .form-group {
        min-width: 100%;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .agents-stats {
        flex-direction: column;
        gap: 8px;
    }
}

/* Analytics Table Styles */
.analytics-table-container {
    margin-top: 20px;
}

.analytics-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.analytics-table-header h2 {
    margin: 0;
    color: #333;
}

.table-controls {
    display: flex;
    gap: 10px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    max-height: 600px;
    overflow-y: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.analytics-table th {
    background: #f5f5f5;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.analytics-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.analytics-table tr:hover {
    background: #f9f9f9;
}

.analytics-table .property-photo {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.analytics-table .property-title {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.analytics-table .property-location {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
}

.analytics-table .property-price {
    font-weight: 600;
    color: #2563eb;
}

.analytics-table .property-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.analytics-table .status-active {
    background: #dcfce7;
    color: #166534;
}

.analytics-table .status-archived {
    background: #fef3c7;
    color: #92400e;
}

.analytics-table .status-sold {
    background: #fee2e2;
    color: #991b1b;
}

.analytics-table .status-deposit {
    background: #e0e7ff;
    color: #3730a3;
}

.analytics-table .agent-name {
    font-weight: 500;
    color: #374151;
}

.analytics-table .property-date {
    color: #666;
    font-size: 14px;
}

.analytics-table .property-type {
    display: inline-block;
    padding: 2px 6px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
}

/* Responsive design for analytics table */
@media (max-width: 768px) {
    .analytics-table-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .table-wrapper {
        max-height: 400px;
    }
    
    .analytics-table {
        min-width: 800px;
    }
    
    .analytics-table th,
    .analytics-table td {
        padding: 8px 4px;
    }
}
/* Price Trends Styles */
.trends-list {
    min-height: 100px;
}

.trends-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
}

.trends-loader .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.trend-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.trend-item.positive {
    border-left-color: #28a745;
}

.trend-item.negative {
    border-left-color: #dc3545;
}

.trend-location {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.trend-address {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.trend-change {
    font-size: 13px;
    font-weight: 600;
}

.trend-change.positive {
    color: #28a745;
}

.trend-change.negative {
    color: #dc3545;
}

.trend-change.neutral {
    color: #666;
}

.trend-stats {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}


/* Local Database Stats Styles */
.db-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.db-stat-item {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #333;
}

.db-stat-item:last-child {
    border-bottom: none;
}

.db-stat-item strong {
    color: #007bff;
    font-size: 16px;
}

.db-actions {
    margin-top: 12px;
    text-align: center;
}

.db-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    background: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.db-actions .btn:hover {
    background: #5a6268;
}

.db-actions .btn:active {
    background: #495057;
}

/* Client Info Modal Styles */
.client-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

#clientInfoModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

#clientInfoModal .modal-content {
    width: 90% !important;
    max-width: 1400px !important;
    height: 90vh !important;
    overflow-y: auto !important;
    background: white !important;
    border-radius: 8px !important;
    position: relative !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

#clientInfoModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

#clientInfoModal .modal-header h2 {
    margin: 0;
    color: #333;
}

#clientInfoModal .close {
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

#clientInfoModal .close:hover {
    color: #333;
}

.client-info-tabs {
    width: 100%;
}

.client-info-tabs .tab-buttons {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    gap: 0;
}

.client-info-tabs .tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.client-info-tabs .tab-btn:hover {
    color: #007bff;
    background: #f8f9fa;
}

.client-info-tabs .tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #f8f9fa;
}

.client-tab {
    display: none;
}

.client-tab.active {
    display: block;
}

.client-tab .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.client-tab .form-group.full-width {
    grid-column: 1 / -1;
}

.client-tab .form-group-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.client-tab .form-group {
    display: flex;
    flex-direction: column;
}

.client-tab .form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.client-tab .form-group input,
.client-tab .form-group select,
.client-tab .form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.client-tab .form-group input:focus,
.client-tab .form-group select:focus,
.client-tab .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.client-tab .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.client-tab .places-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.client-tab .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.client-tab .checkbox-group label:hover {
    background-color: #f8f9fa;
}

.client-tab .checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.client-tab .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.client-tab .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.client-tab .checkmark {
    font-size: 14px;
    line-height: 1.4;
}

/* Autosearch Tab */
.autosearch-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.autosearch-section .section-header h3 {
    margin: 0;
    color: #333;
}

#clientAutosearchResults.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Listings Tab */
.listings-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.listings-section .section-header h3 {
    margin: 0;
    color: #333;
}

#clientListings.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Journal Tab */
.journal-section .section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.journal-section .section-header h3 {
    margin: 0;
    color: #333;
}

.add-journal-entry {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.add-journal-entry textarea {
    flex: 1;
    resize: vertical;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.add-journal-entry .btn {
    height: fit-content;
    white-space: nowrap;
}

.journal-entries {
    max-height: 400px;
    overflow-y: auto;
}

.journal-entry {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.journal-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6c757d;
}

.journal-entry-content {
    color: #333;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .client-tab .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .client-tab .form-group-pair {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .client-info-tabs .tab-btn {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .add-journal-entry {
        flex-direction: column;
        align-items: stretch;
    }
    
    .autosearch-section .section-header,
    .listings-section .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    #clientAutosearchResults.properties-grid,
    #clientListings.properties-grid {
        grid-template-columns: 1fr;
    }
}
/* Fix for clientIsPublic checkbox to make it square */
#clientIsPublic {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

/* Also fix the custom checkmark if it's using custom styling */
#clientIsPublic + .checkmark {
    width: 16px !important;
    height: 16px !important;
}

/* Archive Clients Styles */
.archive-clients-section {
    padding: 20px 0;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.archive-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.5rem;
}

.archive-clients-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.archive-client-kanban-card {
    opacity: 0.8;
    border: 2px solid #dc3545;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.archive-client-kanban-card:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.no-archive-clients {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.archive-clients-link:hover {
    color: #495057 !important;
}

/* Responsive design for archive clients */
@media (max-width: 768px) {
    .archive-clients-list {
        grid-template-columns: 1fr;
    }
    
    .archive-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

/* Collections Page Styles */
.collections-container {
    padding: 20px 0;
}

.collections-grid {
    display: block;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
}

.collection-card {
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.collection-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.collection-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.collection-info {
    flex: 1;
    min-width: 0;
}

.collection-name {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    word-wrap: break-word;
}

.collection-description {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.collection-id {
    font-size: 0.8rem;
    color: #adb5bd;
    font-family: monospace;
}

.collection-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.collection-actions .btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.no-collections {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-collections i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #adb5bd;
}

.no-collections h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #495057;
}

.no-collections p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive design for collections */
@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .collection-card {
        padding: 15px;
    }
    
    .collection-header {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .collection-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .collection-name {
        font-size: 1.1rem;
    }
    
    .collection-actions {
        gap: 6px;
    }
    
    .collection-actions .btn {
        min-width: 80px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Collection Properties Styles */
.collection-properties-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.collection-properties-header h2 {
    margin: 0;
    color: #2c3e50;
}

.collection-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.collection-property-card {
    position: relative;
    max-width: 480px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.collection-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.collection-property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.collection-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-property-card:hover .collection-property-image img {
    transform: scale(1.05);
}

.collection-property-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.collection-property-status.active {
    background: #28a745;
}

.collection-property-status.draft {
    background: #6c757d;
}

.collection-property-status.reserved {
    background: #ffc107;
    color: #212529;
}

.collection-property-status.sold {
    background: #dc3545;
}

.collection-property-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 280px;
}

.collection-property-title {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-property-address {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-property-address i {
    margin-top: 2px;
    flex-shrink: 0;
}

.collection-property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.collection-property-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #007bff;
}

.collection-property-rooms,
.collection-property-area {
    color: #6c757d;
    font-size: 0.9em;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
}

.collection-property-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.collection-property-agent .agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.collection-property-agent .agent-name {
    color: #495057;
    font-size: 0.9em;
    font-weight: 500;
}

.collection-property-date {
    color: #6c757d;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.collection-property-actions {
    position: absolute;
    bottom: 0;
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.collection-property-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9em;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.no-collection-properties {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-collection-properties i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-collection-properties h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.no-collection-properties p {
    margin: 0 0 30px 0;
}

/* Responsive design for collection properties */
@media (max-width: 768px) {
    .collection-properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .collection-properties-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .collection-property-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .collection-property-actions {
        flex-direction: column;
    }
}

/* My Properties Page Styles */
.my-property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.my-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.my-property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.my-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.my-property-card:hover .my-property-image img {
    transform: scale(1.05);
}

.property-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 3em;
}

.my-property-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.my-property-status.active {
    background: #28a745;
}

.my-property-status.draft {
    background: #6c757d;
}

.my-property-status.reserved {
    background: #ffc107;
    color: #212529;
}

.my-property-status.sold {
    background: #dc3545;
}

.my-property-operation {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    background: #007bff;
    color: white;
}

.my-property-info {
    padding: 20px;
}

.my-property-title {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-property-address {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.9em;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.my-property-address i {
    margin-top: 2px;
    flex-shrink: 0;
}

.my-property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.my-property-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #007bff;
}

.my-property-rooms,
.my-property-area,
.my-property-floor {
    color: #6c757d;
    font-size: 0.9em;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
}

.my-property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.property-type {
    color: #495057;
    font-size: 0.9em;
    font-weight: 500;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 12px;
}

.property-date {
    color: #6c757d;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-property-actions {
    display: flex;
    gap: 10px;
}

.my-property-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9em;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Properties count styling */
.properties-count {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: normal;
}

/* Responsive design for my properties */
@media (max-width: 768px) {
    .my-property-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .my-property-actions {
        flex-direction: column;
    }
    
    .my-property-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* My Properties Page Styles */
.my-properties-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.my-properties-filters .filter-row {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.my-properties-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}

.my-properties-filters .filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.my-properties-filters select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #495057;
    transition: border-color 0.2s ease;
}

.my-properties-filters select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.my-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.my-property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.my-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.my-property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.my-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.my-property-card:hover .my-property-image img {
    transform: scale(1.05);
}

.my-property-image .property-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #adb5bd;
    font-size: 3rem;
}

.my-property-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.my-property-status.active {
    background: #28a745;
}

.my-property-status.draft {
    background: #6c757d;
}

.my-property-status.sold {
    background: #dc3545;
}

.my-property-status.reserved {
    background: #ffc107;
    color: #212529;
}

.my-property-operation {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.my-property-info {
    padding: 20px;
}

.my-property-title {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-property-address {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.9em;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.my-property-address i {
    margin-top: 2px;
    flex-shrink: 0;
}

.my-property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.my-property-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #007bff;
}

.my-property-rooms,
.my-property-area,
.my-property-floor {
    color: #6c757d;
    font-size: 0.9em;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
}

.my-property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 0.8em;
}

.my-property-actions {
    display: flex;
    gap: 10px;
}

.my-property-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Empty state for my properties */
.my-properties-grid + .empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.my-properties-grid + .empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.my-properties-grid + .empty-state h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.my-properties-grid + .empty-state p {
    margin: 0 0 30px 0;
}

/* Responsive design for my properties */
@media (max-width: 768px) {
    .my-properties-filters .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .my-properties-filters .filter-group {
        min-width: 100%;
    }
    
    .my-properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .my-property-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .my-property-actions {
        flex-direction: column;
    }
}

/* Custom Confirmation Dialog Styles */
.confirm-dialog-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(5px);
}

.confirm-dialog-overlay.hidden {
    display: none !important;
}

.confirm-dialog-overlay.show {
    display: flex !important;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dialogSlideIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
    margin: auto;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-dialog-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.confirm-dialog-header i {
    font-size: 24px;
    color: #dc3545;
    background: #ffeaea;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'e-UkraineHead', sans-serif;
}

.confirm-dialog-content {
    padding: 20px 24px;
}

.confirm-dialog-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    font-family: 'e-Ukraine', sans-serif;
}

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px 24px;
    background: #f8f9fa;
    justify-content: flex-end;
}

.confirm-dialog-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-weight: 500;
}

.confirm-dialog-actions .btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.confirm-dialog-actions .btn-danger:hover {
    background: #c82333;
}

.confirm-dialog-actions .btn-secondary {
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.confirm-dialog-actions .btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Add to Collection Modal Styles */
#addToCollectionModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

#addToCollectionModal.hidden {
    display: none;
}

.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;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.collection-modal {
    max-width: 500px;
    width: 90%;
}

.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;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-modal .modal-header h2::before {
    content: "\f1c9";
    font-family: 'remixicon';
    font-size: 20px;
}

.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: 'e-Ukraine', 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;
}

/* Custom Alert Dialog Styles */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
    z-index: 999999 !important;
}

.custom-dialog-overlay.hidden {
    display: none;
}

.custom-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    animation: customDialogSlideIn 0.3s ease-out;
    font-family: 'e-Ukraine', sans-serif;
    margin: auto;
}

@keyframes customDialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.custom-dialog-header {
    padding: 20px 24px 16px 24px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.custom-dialog-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-dialog-icon i {
    font-size: 28px;
    color: white;
}

.custom-dialog-icon.success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.custom-dialog-icon.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.custom-dialog-icon.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.custom-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.custom-dialog-content {
    padding: 20px 24px;
    text-align: center;
}

.custom-dialog-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #6c757d;
}

.custom-dialog-actions {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.custom-dialog-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: 'e-Ukraine', sans-serif;
}

.custom-dialog-actions .btn-primary {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.custom-dialog-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.custom-dialog-actions .btn-success {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
}

.custom-dialog-actions .btn-success:hover {
    background: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.custom-dialog-actions .btn-warning {
    background: #ffc107;
    border: 1px solid #ffc107;
    color: #212529;
}

.custom-dialog-actions .btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.custom-dialog-actions .btn-danger {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: white;
}

.custom-dialog-actions .btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

/* Nearby Properties Page Styles */
.nearby-search-form {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.nearby-search-form .form-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.nearby-search-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.nearby-search-form label {
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.nearby-search-form .form-control {
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'e-Ukraine', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nearby-search-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    background: white;
}

.radio-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background: #e3f2fd;
}

.nearby-results {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.results-header h3 {
    margin: 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.results-count {
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 16px;
}

.nearby-results .properties-grid {
    margin-top: 0;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
}

.error-state i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 16px;
}

.error-state h3 {
    margin: 0 0 8px 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 18px;
    color: #721c24;
}

.error-state p {
    margin: 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    color: #721c24;
}

@media (max-width: 768px) {
    .nearby-search-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nearby-search-form .form-group {
        min-width: auto;
    }
    
    .radio-group {
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Nearby Statistics Styles */
.nearby-statistics {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.statistics-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.statistics-header h3 {
    margin: 0 0 8px 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.statistics-description {
    margin: 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    color: #6c757d;
}

.statistics-table {
    overflow-x: auto;
}

.statistics-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'e-Ukraine', sans-serif;
}

.statistics-table th,
.statistics-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.statistics-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.statistics-table td {
    font-size: 14px;
    color: #6c757d;
}

.statistics-table .price-cell {
    font-weight: 600;
    color: #007bff;
    font-size: 16px;
}

.statistics-table .count-cell {
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.statistics-table tr:hover {
    background-color: #f8f9fa;
}

.statistics-table .empty-statistics {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 768px) {
    .statistics-table {
        font-size: 12px;
    }
    
    .statistics-table th,
    .statistics-table td {
        padding: 8px 12px;
    }
}

/* Change Status Modal Styles */
.sale-details-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.section-title {
    margin: 0 0 16px 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'e-Ukraine', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Agent Profile Page Styles */
.back-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.agent-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.agent-info-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.agent-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.agent-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.agent-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.agent-avatar-large i {
    font-size: 32px;
    color: #9ca3af;
}

.agent-header h2 {
    margin: 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.agent-sales-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 20px;
    color: #0c4a6e;
    font-size: 14px;
    font-family: 'e-Ukraine', sans-serif;
    margin: 8px 0;
}

.agent-sales-count i {
    font-size: 16px;
    color: #0ea5e9;
}

.agent-sales-count strong {
    font-weight: 600;
    color: #0c4a6e;
}

.agent-details h2 {
    margin: 0 0 12px 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.contact-item:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.contact-item i {
    font-size: 16px;
    width: 16px;
}

.agent-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.agent-location i {
    font-size: 16px;
}

.agent-description {
    margin: 12px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.agent-description p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.contact-buttons {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.call-btn {
    background: #059669;
    color: white;
}

.call-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0077b3;
    transform: translateY(-1px);
}

.viber-btn {
    background: #7360f2;
    color: white;
}

.viber-btn:hover {
    background: #5b47d1;
    transform: translateY(-1px);
}

.contact-btn i {
    font-size: 16px;
}

.agency-info {
    margin: 24px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.agency-header h3 {
    margin: 0 0 12px 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.agency-details h4 {
    margin: 0 0 8px 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.agency-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.agent-stats {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-icon {
    margin-bottom: 8px;
}

.stat-icon i {
    font-size: 24px;
    color: #3b82f6;
}

.stat-number {
    font-family: 'e-Ukraine', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-properties-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.properties-count {
    color: #6b7280;
    font-size: 14px;
}

.properties-filter {
    margin-bottom: 24px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}

.filter-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.filter-tab.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-tab:hover:not(.active) {
    color: #374151;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.loading-properties {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.property-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.property-card-image {
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.property-card-image i {
    font-size: 48px;
    color: #d1d5db;
}

.property-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.property-card-content {
    padding: 16px;
}

.property-card-content h3 {
    margin: 0 0 8px 0;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.property-card-price {
    font-family: 'e-Ukraine', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
}

.property-card-address {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.property-card-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.property-card-features span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 12px;
}

.property-card-features i {
    font-size: 12px;
}

/* Responsive design for agent profile */
@media (max-width: 1024px) {
    .agent-profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .agent-info-section {
        order: 1;
    }
    
    .agent-properties-section {
        order: 2;
    }
}

@media (max-width: 768px) {
    .agent-profile-container {
        padding: 16px;
    }
    
    .agent-stats {
        justify-content: center;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .contact-buttons {
        justify-content: center;
    }
    
    .contact-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
}

/* Client Journal Styles */
.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.journal-add-entry {
    background: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.journal-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 6px;
    font-family: 'e-Ukraine', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 12px;
    background: var(--colorNeutralBackground2);
    color: var(--colorNeutralForeground1);
}

.journal-textarea:focus {
    outline: none;
    border-color: var(--colorBrandBackground);
    box-shadow: 0 0 0 2px var(--colorBrandBackground2);
}

.journal-entries {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.journal-entry {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: none;
    border-left: 4px solid var(--colorBrandBackground);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.journal-entry:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-left-color: var(--colorBrandBackgroundHover);
}

.journal-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
}

.journal-entry-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--colorNeutralForeground1);
}

.journal-entry-user i {
    font-size: 20px;
    color: var(--colorBrandBackground);
    background: var(--colorBrandBackgroundStatic);
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1) 0%, rgba(0, 120, 212, 0.05) 100%);
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-entry-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--colorBrandBackground);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.2);
}

.journal-entry-date i {
    font-size: 14px;
}

.journal-entry-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--colorNeutralForeground1);
    /* white-space: pre-wrap; */
    word-wrap: break-word;
}

/* Journal loading and empty states */
.journal-section .loading-state,
.journal-section .error-state,
.journal-section .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.journal-section .loading-state i,
.journal-section .error-state i,
.journal-section .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.journal-section .loading-state i {
    color: var(--colorBrandBackground);
    animation: rotate 1s linear infinite;
}

.journal-section .error-state i {
    color: var(--colorPaletteRedForeground1);
}

.journal-section .empty-state i {
    color: var(--colorNeutralForeground3);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Listing Client Cards */
.listing-client-card {
    background: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.listing-client-card:hover {
    box-shadow: var(--shadow4);
    border-color: var(--colorBrandStroke1);
}

.listing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

.listing-broker-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listing-broker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.listing-broker-avatar:hover {
    transform: scale(1.05);
}

.listing-broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-broker-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-broker-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--colorNeutralForeground1);
    text-decoration: none;
    transition: color 0.2s ease;
}

.listing-broker-name:hover {
    color: var(--colorBrandForeground1);
}

.listing-client-id {
    font-size: 12px;
    color: var(--colorNeutralForeground3);
}

.listing-operation-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.listing-operation-badge.rent {
    background: var(--colorPaletteBlueBorder2);
    color: var(--colorPaletteBlueForeground2);
}

.listing-operation-badge.sale {
    background: var(--colorPaletteGreenBorder2);
    color: var(--colorPaletteGreenForeground2);
}

.listing-operation-badge i {
    font-size: 14px;
}

.listing-card-body {
    margin-bottom: 16px;
}

.listing-property-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--colorNeutralForeground2);
    margin-bottom: 12px;
}

.listing-property-type i {
    font-size: 16px;
    color: var(--colorBrandForeground1);
}

.listing-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.listing-criteria-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.criteria-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--colorNeutralForeground3);
    letter-spacing: 0.5px;
}

.criteria-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--colorNeutralForeground1);
}

.criteria-value i {
    font-size: 16px;
    color: var(--colorBrandForeground1);
}

.listing-client-description {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--colorNeutralBackground3);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--colorNeutralForeground2);
    margin-top: 12px;
}

.listing-client-description i {
    font-size: 16px;
    color: var(--colorBrandForeground1);
    flex-shrink: 0;
    margin-top: 2px;
}

.listing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--colorNeutralStroke2);
}

.listing-date-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--colorNeutralForeground3);
}

.listing-date-info i {
    font-size: 14px;
}

.listing-viewed-badge,
.listing-not-viewed-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.listing-viewed-badge {
    background: var(--colorPaletteGreenBorder2);
    color: var(--colorPaletteGreenForeground2);
}

.listing-not-viewed-badge {
    background: var(--colorNeutralBackground5);
    color: var(--colorNeutralForeground3);
}

.listing-viewed-badge i,
.listing-not-viewed-badge i {
    font-size: 12px;
}

/* Responsive design for listing cards */
@media (max-width: 768px) {
    .listing-criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .listing-operation-badge {
        align-self: flex-start;
    }
    
    .listing-card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}