/* ============================================
   Салон красоты "Афродита" — стили
   Розово-пурпурная палитра
   ============================================ */

:root {
    --salon-primary: #ff4880;
    --salon-primary-dark: #e6356f;
    --salon-secondary: #c2185b;
    --salon-accent: #ad1457;
    --salon-light: #ffecf2;
    --salon-dark: #2d3142;
    --salon-text: #70747f;
    --salon-gold: #c9a96e;
}

.text-primary {
    color: var(--salon-primary) !important;
}

.bg-primary {
    background-color: var(--salon-primary) !important;
}

.btn-primary {
    background-color: var(--salon-primary) !important;
    border-color: var(--salon-primary) !important;
}

.btn-primary:hover {
    background-color: var(--salon-primary-dark) !important;
    border-color: var(--salon-primary-dark) !important;
}

.border-primary {
    border-color: var(--salon-primary) !important;
}

a.text-primary:hover, a.text-primary:focus {
    color: var(--salon-primary-dark) !important;
}

/* Переопределение secondary на розовый */
.text-secondary {
    color: var(--salon-secondary) !important;
}

.bg-secondary {
    background-color: var(--salon-secondary) !important;
}

/* Topbar */
.topbar.bg-primary {
    background: linear-gradient(90deg, var(--salon-secondary), var(--salon-primary)) !important;
}

/* Hero section */
.hero-header {
    background: linear-gradient(rgba(45, 49, 66, 0.55), rgba(45, 49, 66, 0.35)),
        url('../img/hero-img.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Page header (для внутренних страниц) */
.page-header {
    background: linear-gradient(rgba(45, 49, 66, 0.55), rgba(45, 49, 66, 0.35)),
        url('../img/hero-img.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    padding: 8rem 0 4rem 0 !important;
}

/* Замена иконки логотипа */
.navbar-brand .display-6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
}

.brand-icon {
    color: var(--salon-primary);
    font-size: 2rem;
    margin-right: 8px;
    vertical-align: middle;
}

/* Карточки услуг */
.service-item {
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 72, 128, 0.15);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 72, 128, 0.15);
    border-color: var(--salon-primary);
}

.service-item .service-img {
    height: 220px;
    background: linear-gradient(135deg, var(--salon-light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-item .service-img i {
    font-size: 5rem;
    color: var(--salon-primary);
    transition: transform 0.4s ease;
}

.service-item:hover .service-img i {
    transform: scale(1.1) rotate(-5deg);
}

.service-item .service-content {
    padding: 1.5rem;
}

.service-item .service-content h5 {
    color: var(--salon-dark);
    margin-bottom: 0.75rem;
}

.service-item .service-content p {
    color: var(--salon-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-item .service-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--salon-primary);
    margin-bottom: 1rem;
}

.service-item .service-duration {
    color: var(--salon-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-item .service-duration i {
    color: var(--salon-secondary);
    margin-right: 5px;
}

/* Мастера */
.master-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(45, 49, 66, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.master-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 72, 128, 0.18);
}

.master-card .master-img {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.master-card .master-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.master-card:hover .master-img img {
    transform: scale(1.05);
}

.master-card .master-info {
    padding: 1.5rem;
    text-align: center;
}

.master-card .master-info h5 {
    color: var(--salon-dark);
    margin-bottom: 0.25rem;
}

.master-card .master-info .master-spec {
    color: var(--salon-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.master-card .master-info p {
    color: var(--salon-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.master-card .master-exp {
    display: inline-block;
    padding: 4px 14px;
    background: var(--salon-light);
    color: var(--salon-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Слоты бронирования */
.slot-card {
    background: #fff;
    border: 2px solid var(--salon-light);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--salon-dark);
}

.slot-card:hover {
    border-color: var(--salon-primary);
    background: var(--salon-light);
    color: var(--salon-secondary);
    transform: translateY(-3px);
    text-decoration: none;
}

.slot-card.slot-booked {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #ddd;
}

.slot-card.slot-selected {
    background: var(--salon-primary);
    color: #fff;
    border-color: var(--salon-primary);
}

.slot-time {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.slot-info {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Личный кабинет */
.cabinet-sidebar {
    background: linear-gradient(180deg, var(--salon-secondary), var(--salon-primary));
    border-radius: 20px;
    padding: 2rem 1.5rem;
    color: #fff;
    min-height: 500px;
}

.cabinet-sidebar .user-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.cabinet-sidebar .user-name {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.cabinet-sidebar .user-email {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.cabinet-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cabinet-sidebar .nav-link:hover,
.cabinet-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cabinet-sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
}

.cabinet-content {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(45, 49, 66, 0.05);
    min-height: 500px;
}

.cabinet-content h2 {
    color: var(--salon-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Карточки статистики в кабинете */
.stat-card {
    background: linear-gradient(135deg, #fff, var(--salon-light));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 72, 128, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 72, 128, 0.1);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--salon-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--salon-dark);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--salon-text);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Админ-панель */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f6f7fb;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--salon-secondary), var(--salon-accent));
    color: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.admin-sidebar .brand i {
    color: var(--salon-light);
    margin-right: 8px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link i {
    width: 22px;
    margin-right: 12px;
    text-align: center;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    border-left-color: #fff;
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-x: auto;
}

.admin-topbar {
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(45, 49, 66, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-topbar h1 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--salon-dark);
    font-weight: 700;
}

.admin-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 5px 20px rgba(45, 49, 66, 0.05);
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    font-size: 1.3rem;
    color: var(--salon-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    text-align: left;
    padding: 0.85rem 1rem;
    background: var(--salon-light);
    color: var(--salon-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.admin-table th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f5;
    vertical-align: middle;
    font-size: 0.95rem;
}

.admin-table tr:hover td {
    background: #fafbfd;
}

/* Бейджи статусов */
.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-completed {
    background: #f3e5f5;
    color: #6a1b9a;
}

.badge-cancelled {
    background: #ffebee;
    color: #c62828;
}

/* Формы */
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    border: 1px solid #e0e0e8;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--salon-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 72, 128, 0.15);
}

.form-label {
    color: var(--salon-dark);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* Кнопки */
.btn-pink {
    background: var(--salon-primary);
    color: #fff;
    border: 0;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pink:hover {
    background: var(--salon-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 72, 128, 0.3);
}

.btn-outline-pink {
    background: #fff;
    color: var(--salon-primary);
    border: 2px solid var(--salon-primary);
    border-radius: 25px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-pink:hover {
    background: var(--salon-primary);
    color: #fff;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: 0;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

.alert-warning {
    background: #fff8e1;
    color: #ef6c00;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #2d3142, #1f2230) !important;
}

.footer h2, .footer h4, .footer h5 {
    color: #fff;
}

.footer .footer-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.footer .footer-item a:hover {
    color: var(--salon-primary);
    letter-spacing: 0.3px;
}

.footer .text-body {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Date picker section */
.date-picker {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.date-pill {
    flex-shrink: 0;
    width: 80px;
    padding: 12px 8px;
    border: 2px solid #e0e0e8;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-decoration: none;
    color: var(--salon-dark);
}

.date-pill:hover {
    border-color: var(--salon-primary);
    color: var(--salon-secondary);
    text-decoration: none;
}

.date-pill.active {
    background: var(--salon-primary);
    border-color: var(--salon-primary);
    color: #fff;
}

.date-pill .day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.date-pill .day-num {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin: 4px 0;
}

.date-pill .day-month {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Login/Register pages */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--salon-light) 0%, #fff 100%);
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 72, 128, 0.15);
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
}

.auth-card h2 {
    text-align: center;
    color: var(--salon-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--salon-text);
    margin-bottom: 2rem;
}

.auth-card .form-control {
    padding: 0.8rem 1rem;
}

.auth-card .btn-pink {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--salon-text);
}

.auth-card .auth-footer a {
    color: var(--salon-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-card .auth-footer a:hover {
    color: var(--salon-primary-dark);
    text-decoration: underline;
}

/* Иконка сервиса */
.service-icon-wrap {
    width: 90px;
    height: 90px;
    background: var(--salon-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--salon-primary);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon-wrap {
    background: var(--salon-primary);
    color: #fff;
    transform: rotate(360deg);
}

/* Feature item (Why us) */
.feature-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 72, 128, 0.1);
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 72, 128, 0.1);
}

.feature-item .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--salon-light);
    color: var(--salon-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature-item h5 {
    color: var(--salon-dark);
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--salon-text);
    font-size: 0.9rem;
    margin: 0;
}

/* Gallery */
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 200px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 72, 128, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(45, 49, 66, 0.08);
    margin: 0 10px;
}

.testimonial-card .quote {
    color: var(--salon-primary);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--salon-text);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author h6 {
    margin: 0;
    color: var(--salon-dark);
    font-weight: 700;
}

.testimonial-card .author span {
    color: var(--salon-text);
    font-size: 0.85rem;
}

/* Section title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .subtitle {
    color: var(--salon-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 4px 14px;
    background: var(--salon-light);
    border-radius: 20px;
}

.section-title h2 {
    color: var(--salon-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Fredoka', sans-serif;
}

.section-title p {
    color: var(--salon-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs in cabinet */
.cabinet-tabs {
    border-bottom: 2px solid #f0f0f5;
    margin-bottom: 1.5rem;
}

.cabinet-tabs .nav-link {
    color: var(--salon-text);
    font-weight: 600;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    background: transparent;
}

.cabinet-tabs .nav-link.active {
    color: var(--salon-primary);
    border-bottom-color: var(--salon-primary);
    background: transparent;
}

/* Booking detail card */
.booking-card {
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
}

.booking-card:hover {
    border-color: var(--salon-primary);
    box-shadow: 0 10px 25px rgba(255, 72, 128, 0.08);
}

.booking-card .booking-info h5 {
    margin: 0 0 0.25rem;
    color: var(--salon-dark);
}

.booking-card .booking-info small {
    color: var(--salon-text);
}

.booking-card .booking-meta {
    text-align: right;
}

.booking-card .booking-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--salon-secondary);
}

.booking-card .booking-time {
    color: var(--salon-text);
    font-size: 0.95rem;
}

/* Адаптив */
@media (max-width: 991px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .admin-sidebar .nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 1rem;
    }
    .admin-sidebar .nav-link {
        border-left: 0;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
    .admin-sidebar .nav-link:hover,
    .admin-sidebar .nav-link.active {
        border-bottom-color: #fff;
        border-left-color: transparent;
    }
}

@media (max-width: 768px) {
    .cabinet-sidebar {
        margin-bottom: 1.5rem;
        min-height: auto;
    }
    .hero-header {
        min-height: 60vh;
    }
    .hero-header h1.display-1 {
        font-size: 2.5rem;
    }
}
