/*
 * Ambrio Hair Studio Custom Stylesheet
 * Brand Colors: Pink (#ff3eba), Black (#121212), White (#ffffff)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-pink: #ff3eba;
    --primary-pink-hover: #e02fa2;
    --primary-pink-light: rgba(255, 62, 186, 0.1);
    --dark-bg: #121212;
    --dark-card: #1a1a1a;
    --light-bg: #f8f9fa;
    --border-color: #e5e5e5;
    --text-muted: #6c757d;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-bg);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Reusable buttons */
.btn-pink {
    background-color: var(--primary-pink);
    color: #ffffff;
    border: 2px solid var(--primary-pink);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-pink:hover,
.btn-pink:focus {
    background-color: var(--primary-pink-hover);
    border-color: var(--primary-pink-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-pink {
    background-color: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-pink:hover {
    background-color: var(--primary-pink);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-dark-custom {
    background-color: var(--dark-bg);
    color: #ffffff;
    border: 2px solid var(--dark-bg);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-dark-custom:hover {
    background-color: #222222;
    border-color: #222222;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Floating Action Button */
.btn-floating-book {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    background-color: var(--primary-pink);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 62, 186, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-floating-book:hover {
    background-color: var(--primary-pink-hover);
    color: #ffffff;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 62, 186, 0.6);
}

/* Navbar */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0.5rem 0;
}

.site-logo-header {
    height: 150px;
    width: auto;
    transition: height 0.3s ease;
}

.site-logo-footer {
    height: 150px;
    width: auto;
}

@media (max-width: 768px) {
    .site-logo-header {
        height: 55px !important;
    }

    .site-logo-footer {
        height: 65px !important;
    }
}

.navbar-custom .navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #121212;
    letter-spacing: 1px;
}

.navbar-custom .navbar-brand span {
    color: var(--primary-pink);
}

.navbar-custom .nav-link {
    color: #212529;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-pink);
}

.hover-pink:hover {
    color: var(--primary-pink) !important;
}

/* Hero Section - Light & Luminous Theme */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #fcf6fa 50%, #f8eff6 100%);
    color: #121212;
    padding: 80px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 62, 186, 0.15) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #121212;
}

.hero-title span {
    color: var(--primary-pink);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #555555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* 3D Scissors Floating Showcase */
.hero-scissors-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-scissors-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 62, 186, 0.25);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(255, 62, 186, 0.15), 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero-scissors-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(255, 62, 186, 0.22), 0 15px 30px rgba(0, 0, 0, 0.08);
}

.hero-scissors-img {
    max-width: 100%;
    height: auto;
    max-height: 380px;
    filter: drop-shadow(0 18px 35px rgba(255, 62, 186, 0.3));
    animation: floatScissors 4s ease-in-out infinite;
}

.hero-badge-floating {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid rgba(255, 62, 186, 0.3);
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #121212;
    white-space: nowrap;
}

@keyframes floatScissors {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-14px) rotate(2deg);
    }
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-subtitle {
    color: var(--primary-pink);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-pink);
}

/* Service Card on Landing Page */
.service-item-row {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.service-item-row:hover {
    border-color: var(--primary-pink);
    transform: translateX(10px);
}

.service-item-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.service-item-description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-item-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.service-item-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stepper Wizard */
.stepper-header {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stepper-header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.stepper-progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background-color: var(--primary-pink);
    z-index: 2;
    transition: width 0.4s ease;
    width: 0%;
}

.step-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.step-node.active .step-circle {
    border-color: var(--primary-pink);
    background-color: var(--primary-pink);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 62, 186, 0.4);
}

.step-node.completed .step-circle {
    border-color: var(--primary-pink);
    background-color: #ffffff;
    color: var(--primary-pink);
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

.step-node.active .step-label {
    color: var(--dark-bg);
}

.booking-wizard-card {
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    padding: 2.5rem;
}

.service-select-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-select-card:hover {
    border-color: var(--primary-pink);
    background-color: var(--primary-pink-light);
}

.service-select-card.selected {
    border-color: var(--primary-pink);
    background-color: var(--primary-pink-light);
    box-shadow: inset 3px 0 0 var(--primary-pink);
}

/* Time Slot Selection */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.slot-item {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-item:hover:not(.disabled) {
    border-color: var(--primary-pink);
    background-color: var(--primary-pink-light);
    color: var(--primary-pink);
}

.slot-item.selected {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: #ffffff;
}

.slot-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #f1f1f1;
}

/* CRM Interface */
.crm-container {
    min-height: 100vh;
    display: flex;
}

.crm-sidebar {
    width: 280px;
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.crm-sidebar .logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.crm-sidebar .logo span {
    color: var(--primary-pink);
}

.crm-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crm-nav-item {
    margin-bottom: 0.5rem;
}

.crm-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.crm-nav-link:hover,
.crm-nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 62, 186, 0.15);
    box-shadow: inset 4px 0 0 var(--primary-pink);
}

.crm-nav-link i {
    font-size: 1.1rem;
    width: 20px;
}

.crm-content {
    flex: 1;
    background-color: var(--light-bg);
    padding: 2.5rem;
    overflow-y: auto;
}

/* CRM Table & Dashboard Card */
.crm-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.crm-stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.crm-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    background-color: #ffffff;
}

.crm-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

/* Calendar styling adjustments */
.calendar-time-row {
    border-bottom: 1px solid var(--border-color);
    min-height: 70px;
    display: flex;
}

.calendar-time-label {
    width: 80px;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: #fdfdfd;
}

.calendar-slots {
    flex: 1;
    position: relative;
    padding: 0.25rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.calendar-appointment-block {
    background-color: var(--primary-pink-light);
    border-left: 4px solid var(--primary-pink);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.calendar-appointment-block:hover {
    background-color: rgba(255, 62, 186, 0.2);
}

/* Form Styles */
.form-control-custom {
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.form-control-custom:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 0.2rem rgba(255, 62, 186, 0.15);
}

/* Datepicker theme overrides for pink */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(36%) sepia(85%) saturate(2852%) hue-rotate(303deg) brightness(97%) contrast(106%);
}

/* Remove underlines from links and menus */
a,
.btn,
.nav-link,
.crm-nav-link {
    text-decoration: none !important;
}

a:hover,
.btn:hover,
.nav-link:hover,
.crm-nav-link:hover {
    text-decoration: none !important;
}

/* CRM mobile responsive layout overrides */
@media (max-width: 991.98px) {
    .crm-container {
        flex-direction: column !important;
        position: relative;
    }

    .crm-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 2000 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.25) !important;
        background-color: #121212 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.show-sidebar .crm-sidebar {
        left: 0 !important;
    }

    .crm-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1999;
    }

    body.show-sidebar .crm-sidebar-overlay {
        display: block !important;
    }

    .crm-content {
        padding: 1.5rem !important;
        width: 100% !important;
    }
}

/* FullCalendar custom themed variables */
.fc {
    --fc-border-color: #e5e5e5;
    --fc-button-bg-color: #121212;
    --fc-button-border-color: #121212;
    --fc-button-hover-bg-color: #ff3eba;
    --fc-button-hover-border-color: #ff3eba;
    --fc-button-active-bg-color: #ff3eba;
    --fc-button-active-border-color: #ff3eba;
    --fc-event-bg-color: rgba(255, 62, 186, 0.1);
    --fc-event-border-color: #ff3eba;
    --fc-event-text-color: #121212;
    font-family: 'Inter', sans-serif !important;
}

.fc-event {
    border-left: 4px solid var(--primary-pink) !important;
    padding: 3px 6px !important;
    cursor: pointer;
    border-radius: 0 !important;
    font-size: 0.85rem !important;
}

.fc-event-title {
    font-weight: 600 !important;
}

.fc-toolbar-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
}

/* FullCalendar Mobile Responsive Improvements */
@media (max-width: 767.98px) {
    .fc .fc-toolbar {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    .fc .fc-toolbar-title {
        font-size: 1.15rem !important;
        text-align: center;
    }
    .fc .fc-button-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .fc .fc-button {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.82rem !important;
    }
    .fc-theme-standard td, .fc-theme-standard th {
        font-size: 0.8rem !important;
    }
    .fc .fc-view-harness {
        min-height: 480px !important;
    }
}