@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f7f4ef;
    color: #1a1a1a;
}

/* FONT SIZE SETTINGS */

body.font-normal{
font-size:14px;
}

body.font-large{
font-size:17px;
}

body.font-xlarge{
font-size:20px;
}

/* увеличиваем sidebar */

body.font-large .sidebar a{
font-size:17px;
}

body.font-xlarge .sidebar a{
font-size:22px;
}


/* увеличиваем текст карточки */

body.font-large .property-info p{
font-size:17px;
}

body.font-xlarge .property-info p{
font-size:22px;
}


/* увеличиваем элементы */

body.font-large input,
body.font-large select,
body.font-large textarea{
font-size:16px;
padding:10px;
}

body.font-xlarge input,
body.font-xlarge select,
body.font-xlarge textarea{
font-size:18px;
padding:12px;
}

/* кнопки */

body.font-large .button{
font-size:16px;
padding:10px 18px;
}

body.font-xlarge .button{
font-size:18px;
padding:12px 22px;
}

/* карточки */

body.font-large .card{
padding:22px;
}

body.font-xlarge .card{
padding:26px;
}

/* таблицы */

body.font-large .clients-table td{
padding:12px;
}

body.font-xlarge .clients-table td{
padding:15px;
}

/* карточки объектов */

body.font-large .object-card{
transform:scale(1.04);
}

body.font-xlarge .object-card{
transform:scale(1.08);
}


/* SIDEBAR */

.sidebar {
    width: 260px; /* Немного расширим для "воздуха" */
    background: #0d0d0d; /* Глубокий черный */
    color: #fff;
    height: 100vh;
    position: fixed;
    padding: 40px 15px; /* Увеличим отступы */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255,255,255,0.05);
}


.logo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 1px;
	padding-left: 15px;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
}
	
/* Стили ссылок меню */
.sidebar nav a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6); /* Приглушим неактивные */
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 12px; /* Современные мягкие углы */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении */
.sidebar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px); /* Легкий сдвиг вправо */
}

/* АКТиВНЫЙ ПУНКТ (Blade подставляет класс .active) */
.sidebar nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(44,107,237,0.2) 0%, rgba(44,107,237,0.1) 100%);
    border-left: 3px solid #2c6bed;
    padding-left: 12px; /* Компенсируем границу */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* MAIN */

.main {
    margin-left: 260px;
    padding: 40px;
}

/* .content {  */
/*    padding: 1px;  */
/* }  */

/* DASHBOARD STATS */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card h3 {
    margin: 0;
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

.stat-card p {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: 600;
}


.stat-card {
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04)
}

.stat-card:hover{
transform:translateY(-3px);
box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

/* CARDS */

.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: 0.2s;
    margin-bottom: 20px;
}



.card:hover {
    transform: translateY(-3px);
}

/* ===================== */
/* OWNER CARD */
/* ===================== */

.owner-card {
    padding: 18px 20px;
}

.owner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owner-left {
    flex: 1;
}

.owner-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
}

.owner-id {
    background: #dfe7ed;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.owner-phone {
    cursor: pointer;
    color: #2c6bed;
}

.owner-phones-extra {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #555;
}

.owner-right {
    font-size: 18px;
}

.owner-suggestions{
/* position:absolute;  */
/* border:1px solid #ddd; */
word-wrap: break-word;
background:white;
width:100%;
z-index:100;
}

.owner-option{
position:relative;
padding:6px;
cursor:pointer;
}

.owner-option:hover{
background:#f3f3f3;
}

/* ===================== */
/* CLIENT CARD */
/* ===================== */

/* ===================== */
/* CLIENTS TABLE */
/* ===================== */

.clients-table-wrapper {
    padding: 0;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.clients-table thead {
    background: #f3f3f3;
}

.clients-table th {
    text-align: left;
    padding: 12px 10px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.clients-table th.sort-asc::after {
    content: " ↑";
    font-size: 12px;
}

.clients-table th.sort-desc::after {
    content: " ↓";
    font-size: 12px;
}

.clients-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.clients-table tbody tr:hover {
    background: #fafafa;
}

/* ID */
.clients-table .client-id {
    background: #dfe7ed;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

/* Телефон кликабельный */
.clients-table .client-phone {
    cursor: pointer;
    color: #2c6bed;
    font-weight: 500;
}

.clients-table .client-phones-extra {
    display: none;
    font-size: 13px;
    margin-top: 4px;
    color: #555;
}

/* Колонка звонка */
.clients-table .client-call-status {
    display: flex;
    justify-content: center;
}


/* ===================== */
/* CALL STATUS ICON */
/* ===================== */

.call-wrapper{
position:relative;
display:inline-block;
}

.client-call-status{
width:32px;
height:32px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
transition:.2s;
}

.phone-icon{
width:18px;
height:18px;
fill:white;
}

.call-neutral{
background:#9ca3af;
}

.call-success{
background:#22c55e;
}

.call-fail{
background:#ef4444;
}

/* tooltip */

.call-tooltip{
position:absolute;
bottom: 100%;
left:50%;
transform:translateX(-70%);
background:white;
border-radius:8px;
box-shadow:0 5px 15px rgba(0,0,0,0.15);
padding:6px 0;
display:none;
width:140px;
z-index:1000;
}

.call-tooltip.active {
    display: block;
}


.call-item {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.call-item:hover{
background:#f3f4f6;
}

/* ===================== */
/* CLIENTS FILTER */
/* ===================== */

/* Контейнер для кнопки фильтрации */
.clients-filter-actions {
    display: flex;
    justify-content: flex-end; /* Выравнивание по правому краю */
    padding: 10px 0;
    margin-top: 10px;
}

/* Сама кнопка "Показать" */
.filter-btn {
    background-color: #0f0f0f; /* Твой фирменный черный */
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.filter-btn:hover {
    background-color: #333; /* Темно-серый при наведении */
}

.filter-btn:active {
    transform: translateY(1px); /* Эффект нажатия */
}

.clients-filter {
    margin-bottom: 25px;
}

.clients-filter-top {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.clients-filter-top input {
    width: 250px;
}

.clients-filter-bottom {
    display: flex;
    gap: 15px;
}

.clients-filter-bottom label {
    background: #f3f3f3;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

/* ===================== */
/*  Блок скрытия клиента */
/* ===================== */

.client-hide-status {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.hide-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.hide-checkbox-label input[type="checkbox"] {
    width: 14px;  /* Маленький размер */
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #0f0f0f; /* Черный цвет галочки под твой стиль */
}

.hide-checkbox-label span {
    font-size: 12px; /* Маленький текст */
    color: #888;     /* Серый цвет, чтобы не отвлекать */
    font-weight: 400;
    transition: color 0.2s;
}

.hide-checkbox-label:hover span {
    color: #1a1a1a; /* При наведении текст становится четче */
}

/* ===================== */
/*  Блок удаления клиента */
/* ===================== */

.delete-client-btn{
background:red;
color:white;
border:none;
border-radius:4px;
cursor:pointer;
padding:4px 7px;
font-size:12px;
}

.delete-client-btn:hover{
background:#b30000;
}

/* STATUS BADGES */

.badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

.free { background: #e8f7ef; color: #27ae60; }
.rented { background: #fdecea; color: #c0392b; }
.soon { background: #fff6e5; color: #e67e22; }
.reserved { background: #eaf2ff; color: #2c6bed; }

/* BUTTON */

.button {
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: 0.2s;
}

.button:hover {
    background: #333;
}

/* SMALL TEXT */

.small {
    font-size: 12px;
    color: #777;
    margin-top: 20px;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    font-family: inherit;
}

.object-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}



/* ===================== */
/* PROPERTY CARD STYLE */
/* ===================== */

.property-card {
    padding: 25px;
    margin-bottom: 25px;
}

.foreign-object {
    opacity: 0.6;
}

.property-card:hover {
    z-index: 10;
    position: relative;
}

.property-top {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.property-image {
    width: 140px;
    aspect-ratio: 4 / 3; /* прямоугольник */
    overflow: hidden;
    border-radius: 10px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* обрезает красиво */
}


.property-info {
    flex: 1;
}

.property-info h3 {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}



.property-info p {
    margin: 4px 0;
    font-size: 14px;
}

.property-extra {
    width: 200px;
    font-size: 14px;
}

.property-extra ul {
    padding-left: 18px;
    margin-top: 5px;
}

.property-price {
    width: 100px;
    text-align: right;
}

.property-price .price {
    font-size: 20px;
    font-weight: 600;
    background: #ffd0ab;
}

.property-note {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #555;
}




/* ===================== */
/* Error input */
/* ===================== */

.is-invalid { 
    border: 1px solid red; 
    
}


/* ===================== */
/* similar-objects-alert Подходящие объекты */
/* ===================== */

.similar-objects-alert{
background:#d9edf7;
padding:10px 15px;
border-radius:6px;
font-size:14px;
display:flex;
gap:12px;
align-items:center;
width:300px;
}

.similar-close{
margin-left:auto;
cursor:pointer;
font-size:14px;
opacity:0.7;
}

.similar-close:hover{
opacity:1;
}

/* ===================== */
/* PROPERTY Photo-preview */
/* ===================== */

.photo-preview{
display:flex;
gap:10px;
margin-top:15px;
flex-wrap:wrap;
}

.photo-item{
position:relative;
}

.photo-item img{
width:120px;
border-radius:6px;
}

.photo-remove{
position:absolute;
top:5px;
right:5px;
background:red;
color:white;
border:none;
border-radius:4px;
cursor:pointer;
padding:2px 6px;
}

.existing-photos{
display:grid;
gap:10px;
flex-wrap:wrap;
margin-top:15px;
grid-template-columns:repeat(auto-fill,120px);
}

.existing-photo{
position:relative;
}

.existing-photo:first-child::after{
content:"Главное";
position:absolute;
top:5px;
left:5px;
background:#4caf50;
color:white;
font-size:10px;
padding:2px 6px;
border-radius:3px;
}

.existing-photo img{
width:120px;
height:90px;
object-fit:cover;
border-radius:6px;
}


.delete-btn-pr{
position:absolute;
top:5px;
right:5px;
background:red;
color:white;
border-radius:4px;
padding:3px 6px;
cursor:pointer;
font-size:12px;
}

.delete-photo input:checked + .delete-btn{
background:black;
}


/* ===================== */
/* Photo-SHOW Slider */
/* ===================== */

.gallery{
width:100%;
}

.gallery-main{
position:relative;
}

.gallery-main img{
width:100%;
border-radius:8px;
}

.gallery-arrow{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(0,0,0,0.5);
color:white;
border:none;
font-size:28px;
padding:10px;
cursor:pointer;
border-radius:4px;
}

.gallery-arrow.left{
left:10px;
}

.gallery-arrow.right{
right:10px;
}

.gallery-thumbs{
display:flex;
gap:8px;
margin-top:10px;
flex-wrap:wrap;
}

.gallery-thumb{
width:80px;
height:60px;
object-fit:cover;
cursor:pointer;
border-radius:4px;
opacity:0.6;
border:2px solid transparent;
}

.gallery-thumb.active{
opacity:1;
border:2px solid #4caf50;
}


/* ===================== */
/* PROPERTY ACTION BAR */
/* ===================== */

.property-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef2f5;
    padding: 8px 12px;
    border-radius: 0 0 10px 10px;
    margin: 15px -25px -25px -25px;
    font-size: 13px;
}

/* Все три внутренних блока делаем флекс-контейнерами для выравнивания содержимого */
.actions-left, 
.actions-center, 
.actions-right {
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние между кнопками внутри блоков */
    flex: 1;   /* Каждый блок занимает равную ширину (33%) */
}

/* Выравнивание содержимого внутри блоков */
.actions-left {
    justify-content: flex-start;
}
.actions-left form {
    display: flex;
    align-items: center;
    margin: 0; /* Прибираємо дефолтні відступи форми */
}

.actions-center {
    justify-content: center;
    font-weight: 600;
    color: #2c6bed;
}

.actions-right {
    justify-content: flex-end;
    font-weight: 600;
}

.owner-contacts {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2c6bed;
    font-weight: 600;
}


.action-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn:hover {
    background: #f5f5f5;
}

.delete-btn {
    color: #c0392b;
    border-color: #f0d4d4;
}

.delete-btn:hover {
    background: #fdeaea;
}


/* ===================== */
/* PROPERTY HEADER BAR */
/* ===================== */

.property-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef2f5;
    padding: 6px 12px;
    border-radius: 10px 10px 0 0;
    font-size: 13px;
    margin: -25px -25px 15px -25px;
}

.property-header-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.prop-id {
    background: #dfe7ed;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.prop-rooms {
    font-weight: 600;
    color: #2c6bed;
}

.prop-street {
    font-weight: 500;
}

.prop-district {
    color: #a03d3d;
    font-weight: 600;
}

.property-header-right {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.property-select input {
    display: none;
}

.custom-checkbox {
    width: 13px;
    height: 13px;
    border: 2px solid #bfc7cf;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    transition: 0.2s;
}

/* Активное состояние */
.property-select input:checked + .custom-checkbox {
    background: #2c6bed;
    border-color: #2c6bed;
    position: relative;
}

/* Галочка */
.property-select input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.object-clients-block {
    margin-top: -15px;
}

/* ===================== */
/* SEARCH PAGE */
/* ===================== */


.search-left {
    flex: 2;
}

.search-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.search-filters {
    flex: 2;
}

.search-client {
    flex: 1;
    position: sticky;
    top: 30px;
    align-self: flex-start;
}


.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.checkbox-grid label {
    background: #f3f3f3;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.checkbox-grid input {
    margin-right: 6px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range input {
    width: 100px;
}

.search-client textarea {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px;
}


/* ===================== */
/* SEARCH RESULTS BAR */
/* ===================== */

.search-results-bar {
    margin: 20px 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-align: right;
    
}

.search-results {
    margin-top: 10px;
}


/* Блок сортировки */
.sorting-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sorting-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.sort-arrows {
    display: flex;
    gap: 4px;
}

.sort-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    color: #1a1a1a; /* Цвет стрелок */
    transition: all 0.2s ease;
    padding: 6px;
}

.sort-btn svg {
    width: 100%;
    height: 100%;
}

.sort-btn:hover {
    background: #0f0f0f;
    color: #fff;
    border-color: #0f0f0f;
}

.sort-btn:active {
    transform: translateY(2px); /* Эффект нажатия */
}

/* Стиль для активной кнопки (когда начнем работать с Laravel, будем вешать этот класс) */
.sort-btn.active {
    background: #0f0f0f;
    color: #fff;
    border-color: #0f0f0f;
}


/* ===================== */
/* MODAL */
/* ===================== */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
}

.modal-content {
    background: #fff;
    width: 80%;
    max-width: 800px;
    margin: 80px auto;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    animation: fadeIn 0.2s ease-in-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    font-size: 24px;
    cursor: pointer;
}

.modal-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group-block {
    margin-bottom: 15px;
}

.form-group-block:last-child {
    border-bottom: none;
}

.form-group-block h4 {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}


.address-grid {
    display: grid;
    grid-template-columns: 180px 200px 40px 40px;
    gap: 15px;
    align-items: end;
}



.small-field input {
    text-align: center;
}

.full-width {
    grid-column: 1 / -1;
}

.upload-box {
    border: 2px dashed #dcdcdc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    position: relative;
    background-color: #f9fdf9;
}

.upload-box input {
    display: none;
}

.upload-box:hover {
    border-color: #4caf50;
    background-color: #f9fdf9;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #777;
}

.upload-icon {
    font-size: 28px;
}

.upload-text {
    font-size: 14px;
}


/* ===================== */
/* SIDEBAR LAYOUT UPDATE */
/* ===================== */

.sidebar {
    width: 240px;
    background: #0f0f0f;
    color: #fff;
    height: 100vh;
    position: fixed;
    padding: 30px 20px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.add-button:hover {
    background: #ddd;
}

.user-block {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 13px;
}

.user-name {
    font-weight: 600;
}

.user-role {
    color: #aaa;
    font-size: 12px;
}



.object-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}


.object-block {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.object-block.full {
    background: #fff;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.floor-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-options {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rent-until {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ===================== */
/* FORM LAYOUT */
/* ===================== */

.form-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
    max-width: 1400px;
}


.card.form-section:first-child {
    max-width: 900px;
}



.form-section {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
}


input,
select,
textarea {
    padding: 8px 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
    outline: none;
}


/* ===================== */
/* ADD BUTTON UPGRADE */
/* ===================== */

.add-button {
    margin: 25px 10px 0 10px;
    display: block;
    background: #2c6bed; /* Твой синий */
    color: #fff !important;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    box-shadow: 0 10px 20px rgba(44,107,237,0.2);
}

.add-button:hover {
    background: #1f4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(44,107,237,0.3);
}



/* ===================== */
/* USER BLOCK */
/* ===================== */

.user-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
	border-radius: 12px; /* Квадрат со скруглением выглядит современнее круга */
    background: linear-gradient(135deg, #2c6bed, #6b2cf5);
    box-shadow: 0 4px 10px rgba(44,107,237,0.3);
}
}

.user-name {
    font-size: 13px;
    font-weight: 600;
	color: #fff;
}

.role-badge {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 3px;
	background: rgba(255,255,255,0.1) !important;
	text-transform: uppercase;
    letter-spacing: 0.5px;
}



.role-badge.super {
    background: #2c6bed;
    color: #fff;
}

.role-badge.admin {
    background: #27ae60;
    color: #fff;
}

.role-badge.manager {
    background: #f39c12;
    color: #fff;
}

/* ===================== */
/* USER DROPDOWN */
/* ===================== */

.user-dropdown {
   display: none;
    position: absolute;
    left: 0;
    background: #1c1c1c;
    padding: 10px 0;
    width: 160px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); 
	background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    bottom: 85px; /* Чуть выше из-за нового паддинга */
    overflow: hidden;
}

.user-dropdown a, .logout-btn {
	display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    padding: 12px 20px;
    transition: 0.2s;
}


.user-dropdown a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* ===================== */
/* DASHBOARD HERO */
/* ===================== */

.dashboard-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45vh;
}

.hero-logo {
    font-size: 120px;
    font-weight: 800;
    letter-spacing: 14px;
    color: #0f0f0f;

    text-shadow:
        0 0 15px rgba(44,107,237,0.25),
        0 0 30px rgba(44,107,237,0.20),
        0 0 60px rgba(44,107,237,0.15);

    opacity: 0.10;
}

/* ===================== */
/* OBJECTS SEARCH BLOCK */
/* ===================== */

.objects-search {
    margin-bottom: 25px;
}

.objects-search h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.search-row label {
    background: #f3f3f3;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.search-row input[type="checkbox"],
.search-row input[type="radio"] {
    margin-right: 6px;
}

.search-inputs input {
    width: 180px;
}


/* ===================== */
/* GLOBAL SEARCH */
/* ===================== */

.global-search {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    gap: 10px;
}

.search-field{
position:relative;
}

.search-dropdown{
position:absolute;
left:0;

background:white;
border:1px solid #ddd;
width:100%;
z-index:999;

box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.search-item{
padding:8px 10px;
cursor:pointer;
}

.search-item:hover{
background:#f5f5f5;
}

/* ===================== */
/* ==== FOOTER ===== */
/* ===================== */

.app-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #999;
    letter-spacing: 0.5px;
}

.logout-btn {
	width: 100%;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: block;
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 15px;
    text-decoration: none;
}

/* ===================== */
/* MOBILE ADAPTIVE */
/* ===================== */

@media (max-width: 900px) {
    .hero-logo {
        font-size: 60px;
        letter-spacing: 6px;
    }
}




@media (max-width: 900px) {
    .form-layout {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {

    .sidebar {
        height: auto;
    }

    .user-block {
        margin-top: 20px;
    }
}


@media (max-width: 900px) {
    .modal-content {
        width: 95%;
        margin-top: 40px;
    }
}

@media (max-width: 900px) {
    .search-layout {
        flex-direction: column;
    }
}

@media (max-width: 900px) {

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        padding: 20px;
    }

    .logo {
        width: 100%;
        margin-bottom: 15px;
    }

    .sidebar a {
        margin-right: 15px;
        margin-bottom: 10px;
    }

    .main {
        margin-left: 0;
        padding: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px;
    }
}
@media (max-width: 900px) {

    .property-top {
        flex-direction: column;
    }

    .property-extra,
    .property-price {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .property-image img {
        width: 100%;
        height: auto;
    }
}
