@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-large .prop-id {
font-size:17px;
}
body.font-large .prop-rooms {
font-size:17px;
}
body.font-large .prop-street {
font-size:17px;
}
body.font-large .prop-landmark {
font-size:17px;
}
body.font-large .prop-district {
font-size:17px;
}

/* Размер Большой */
body.font-xlarge .property-info p{
font-size:22px;
}
body.font-xlarge .prop-id {
font-size:22px;
}
body.font-xlarge .prop-rooms {
font-size:22px;
}
body.font-xlarge .prop-street {
font-size:22px;
}
body.font-large .prop-landmark {
font-size:22px;
}
body.font-xlarge .prop-district {
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: 240px;
    background: #0f0f0f;
    color: #fff;
    height: 100vh;
    position: fixed;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* ===================== */
/* LOGO OPTION  */
/* ===================== */

.logo {
    margin-bottom: 50px;
    padding-left: 15px;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 24px;
    background: linear-gradient(135deg, #fff 30%, #2c6bed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 10px rgba(44,107,237,0.4),
        0 0 20px rgba(44,107,237,0.2);
}


.sidebar a {
    display: block;
    color: #cfcfcf;
    text-decoration: none;
    margin-bottom: 16px;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar a:hover {
    color: #fff;
}

/* MAIN */

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

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

/* ===================== */
/* MODERN DASHBOARD STATS */
/* ===================== */

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

.stat-card {
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Эффект при наведении */
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    border-color: rgba(44, 107, 237, 0.2);
}

.stat-card h3 {
    margin: 0;
    font-size: 13px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-card p {
    margin: 12px 0 0;
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

/* Стилизация цветовых индикаторов через атрибут style (как на твоем скрине) */

/* Свободные (Зеленый) */
.stat-card[style*="#e8f7ef"] {
    background: linear-gradient(135deg, #ffffff 0%, #f0faf5 100%) !important;
    border-bottom: 4px solid #27ae60 !important;
}

/* Сданы (Красный) */
.stat-card[style*="#fdecea"], .stat-card[style*="#fef2f2"] {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%) !important;
    border-bottom: 4px solid #ef4444 !important;
}

/* На просмотре / Резерв (Синий) */
.stat-card[style*="#eaf2ff"] {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%) !important;
    border-bottom: 4px solid #2c6bed !important;
}

/* Декоративный элемент для объема */
.stat-card::before {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.02);
    border-radius: 50%;
}

/* 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;
}


/* .Client Hidden */
.hidden-client-row {
    opacity: 0.5;
    background: rgba(0, 123, 255, 0.05);
    box-shadow: inset 0 0 8px rgba(0, 123, 255, 0.3);
    transition: 0.2s;
}

.hidden-client-row:hover {
    opacity: 0.8;
}

.badge-hidden {
    background: #0d6efd;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}



/* Телефон кликабельный */
.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;
}

.call-info-tooltip {
    display: none;
    position: absolute;
    top: 115%;
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 50;
    white-space: normal;
}


.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-landmark {
    font-weight: 500;
    background: #ffd0ab;
}

.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;
}


/* ===================== */
/* SHOWS PAGE */
/* ===================== */

.showings-calendar-card {
    padding: 20px;
}

.showings-calendar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: start;
}

.calendar-time {
    background: #f5f7fb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    position: sticky;
    top: 10px;
}

.calendar-events {
    min-height: 72px;
    border: 1px dashed #d7dce5;
    border-radius: 12px;
    background: #fcfcfd;
    padding: 8px;
}

.calendar-empty-slot {
    height: 56px;
    border-radius: 8px;
    background: transparent;
}

.calendar-event {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 5px solid #94a3b8;
    background: #fff;
}

.calendar-event:last-child {
    margin-bottom: 0;
}

.event-planned {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.event-done {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.event-canceled {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.event-moved {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.event-not_fit {
    background: #fff3e0;
    border-left: 3px solid #fb8c00;
}

.calendar-event-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.event-status {
    font-size: 12px;
    opacity: 0.85;
    white-space: nowrap;
}

.calendar-event-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #1e293b;
}

.calendar-event-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.calendar-event-actions form {
    margin: 0;
}

@media (max-width: 768px) {
    .calendar-row {
        grid-template-columns: 1fr;
    }

    .calendar-time {
        position: static;
    }

    .calendar-event-top {
        flex-direction: column;
    }

    .calendar-event-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.showings-week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.showings-week-title {
    font-weight: 700;
    font-size: 18px;
}

.week-calendar {
    overflow-x: auto;
}

.week-calendar-header,
.week-row {
    display: grid;
    grid-template-columns: 90px repeat(7, minmax(180px, 1fr));
}

.week-calendar-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    margin-bottom: 8px;
}

.week-day-col,
.week-time-col,
.week-cell {
    border: 1px solid #e5e7eb;
}

.week-day-col {
    background: #f8fafc;
    text-align: center;
    padding: 12px 8px;
    font-weight: 600;
}

.week-time-col {
    background: #f8fafc;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #475569;
}

.week-cell {
    min-height: 84px;
    padding: 6px;
    background: #fff;
}

.today-col {
    background: #fffbea !important;
}

.week-event {
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-left: 4px solid #94a3b8;
    font-size: 12px;
}

.week-event:last-child {
    margin-bottom: 0;
}

.week-event-time {
    font-weight: 700;
    margin-bottom: 4px;
}

.week-event-object,
.week-event-client {
    margin-bottom: 4px;
}

.week-event-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.week-event-actions form {
    margin: 0;
}

.event-planned {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.event-done {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.event-canceled {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.event-moved {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

@media (max-width: 1100px) {
    .week-calendar-header,
    .week-row {
        grid-template-columns: 80px repeat(7, minmax(160px, 1fr));
    }
}

.showing-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showing-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.showing-modal-content {
    position: relative;
    z-index: 2;
    width: min(560px, calc(100% - 24px));
}

.showing-modal-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.showing-modal-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
}

.showing-modal-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.showing-modal-row strong {
    min-width: 110px;
    color: #334155;
}

.showing-modal-note {
    display: block;
}

.showing-modal-note strong {
    display: block;
    margin-bottom: 8px;
}

#modal-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    white-space: pre-wrap;
    color: #0f172a;
}

.showing-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 16px;
}

.showing-modal-close:hover {
    background: #e2e8f0;
}


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

.showing-search-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}

.showing-search-group .search-field {
    position: relative;
}

.showing-search-group .topbar-search-input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7dce5;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.showing-search-group .topbar-search-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
}

.showing-search-group small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

.showing-search-group .search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d7dce5;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
}

.showing-search-group .search-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eef2f7;
    transition: 0.15s ease;
}

.showing-search-group .search-item:last-child {
    border-bottom: none;
}

.showing-search-group .search-item:hover {
    background: #f8fafc;
}

@media (max-width: 768px) {
    .showing-search-grid {
        grid-template-columns: 1fr;
    }
}

.week-event-locked {
    opacity: 0.92;
}

.week-event-readonly {
    margin-top: 6px;
}

.week-event-lock-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
    background: #eef2f7;
    color: #64748b;
    font-weight: 600;
}


/* ===================== */
/* 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;
}

.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: 22px 10px 0 10px;
    display: block;
    background: #2c6bed; /* Твой синий */
    color: #fff !important;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 20px rgba(44,107,237,0.2);
}


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


/* ===================== */
/* 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;
    position: relative;
}

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

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2c6bed, #6b2cf5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    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;
    color: #aaa;
    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;
    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;
    padding: 12px 20px;
    font-size: 13px;
    transition: 0.2s;
    color: #ccc;
    text-decoration: none;
}


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


/* ===================== */
/* MODERN PAGINATION FIX */
/* ===================== */

/* 1. Исправляем размер стрелок (SVG) */
nav[role="navigation"] svg {
    width: 18px !important;
    height: 18px !important;
    display: inline-block;
    vertical-align: middle;
}

/* 2. Стили контейнера пагинации */
nav[role="navigation"] {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

/* 3. Базовый стиль кнопок и ссылок (в стиле твоих action-btn) */
nav[role="navigation"] a, 
nav[role="navigation"] span[aria-disabled="true"] > span,
nav[role="navigation"] span[aria-current="page"] > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    margin: 0 3px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 4. Состояние при наведении */
nav[role="navigation"] a:hover {
    background-color: #f8f9fa;
    border-color: #2c6bed;
    color: #2c6bed;
    transform: translateY(-1px);
}

/* 5. Активная страница (фирменный синий) */
nav[role="navigation"] span[aria-current="page"] > span {
    background-color: #2c6bed;
    border-color: #2c6bed;
    color: #fff;
}

/* 6. Неактивные кнопки (например, "Назад", когда страниц больше нет) */
nav[role="navigation"] span[aria-disabled="true"] > span {
    color: #ccc;
    background-color: #fafafa;
    border-color: #eee;
    cursor: not-allowed;
}

/* 7. Скрываем текст "Showing X to Y", чтобы оставить только кнопки */
nav[role="navigation"] .flex.items-center.justify-between div:first-child {
    display: none !important;
}

/* 8. Для мобильной версии (убираем лишние обертки Tailwind) */
nav[role="navigation"] .hidden.sm\:flex-1 {
    display: block !important;
}




/* ===================== */
/* 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;
    }
}
