:root {
    --primary-color: #e22b2e;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

p, div {
    font-weight: 300;
}

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

body {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1400px;
}
.services {
}

.price {
    font-size: 1.2rem;
}

.service {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 25px;
    border-radius: 23px;
    background: rgba(0, 0, 0, 0.05);
}

.transaction {
    padding: 20px 25px;
    border-radius: 23px;
    background: rgba(0, 0, 0, 0.05);
}

.legend {
    padding: 20px 25px;
}

.service-tab {
    border-radius: 30px;
    padding: 5px 12px;
    margin: 4px;
    background: rgba(0, 0, 0, 0.05);
}

select {
    width: 100%;
}

.round-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #d6d6d6;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.add-service i {
    font-size: 20px; /* Размер иконки */
}

.modal-blured {
    --bs-modal-bg: rgba(27, 34, 35, 0.32) !important;
    backdrop-filter: blur(10px);
}

.modal-menu-item {
    font-size: 30px;
    color: white;
    text-decoration: none;
    display: inline;
    background: none;
    border: none;

    &.small {
        font-size: 14px;
    }
}

.modal-rounded {
    border-radius: 30px;
}


.before-after-slider {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: grab;
    user-select: none;
}

.before-after-slider:active {
    cursor: grabbing;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #fff, #f0f0f0);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-handle::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #666;
    font-weight: bold;
    z-index: 1;
}

.before-label, .after-label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

/* Responsive design */
@media (max-width: 600px) {
    .before-after-slider {
        width: 90vw;
        height: 90vw;
        max-width: 400px;
        max-height: 400px;
    }
}


.folder-card {
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.folder-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.folder-icon {
    font-size: 2.5rem;
}

.batch-card {
    transition: transform 0.15s, box-shadow 0.15s;
}

.batch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.btn-xxl {
    color: black;
    text-decoration: none;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e6e6e6;
    padding: 30px;
}

.breadcrumb-item {
    text-decoration: none !important;
}


.photo-col .btn-delete-photo {
    display: none;
    opacity: 0;
    transition: opacity 0.15s;
}

/* Десктоп — показываем по hover */
@media (hover: hover) {
    .photo-col:hover .btn-delete-photo {
        display: block;
        opacity: 1;
    }
}

/* Мобильные — всегда показываем крестик */
@media (hover: none) {
    .photo-col .btn-delete-photo {
        display: block;
        opacity: 0.85;
    }
}


/* ── Admin layout с сайдбаром ── */

.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f8f8f8;
}

.admin-sidebar {
    width: 220px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 28px 0 20px;
    z-index: 100;
}

.sidebar-logo {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    padding: 0 24px;
    margin-bottom: 32px;
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
    padding: 0 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background 0.12s, color 0.12s;
}

.sidebar-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.sidebar-link.active {
    background: #000;
    color: #fff;
}

.sidebar-link i {
    width: 16px;
    text-align: center;
    opacity: 0.75;
}

.sidebar-link.active i {
    opacity: 1;
}

.sidebar-settings {
    padding: 0 12px;
    margin-top: 8px;
    padding-top: 12px;
}

.sidebar-footer {
    padding: 0 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-top: 12px;
}

.admin-main {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
    padding: 0;
}

.admin-bottom-nav {
    display: none;
}

/* ── Мобильная версия (< lg = 992px) ── */
@media (max-width: 991.98px) {
    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
        padding-bottom: 70px;
        overflow-x: hidden;
    }

    .admin-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 100;
        align-items: stretch;
    }

    .bottom-nav-link {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        text-decoration: none;
        font-size: 1.2rem;
        transition: color 0.12s;
    }

    .bottom-nav-link:hover {
        color: #444;
    }

    .bottom-nav-link.active {
        color: #000;
    }
}