/* Arusha Beauty Salon - Feminine Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d63384;
    --secondary-color: #f8bbd0;
    --accent-color: #e91e63;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #fff5f8;
    --bg-white: #ffffff;
    --border-color: #fce4ec;
    --shadow: 0 2px 10px rgba(214, 51, 132, 0.1);
    --shadow-hover: 0 5px 20px rgba(214, 51, 132, 0.2);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* General Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Glassmorphism Design */
.header {
    background: rgba(214, 51, 132, 0.4);
    /* More transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo Link - Clickable Home Button */
.logo-link {
    text-decoration: none;
    display: block;
}

.site-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.site-logo:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

/* Header Container - Logo left, nav centered */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Desktop Navigation - Centered */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    padding: 0.8rem 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Hide mobile logo on desktop */
.mobile-logo {
    display: none;
}

/* Mobile Menu - HIDDEN on Desktop */
.mobile-menu-toggle {
    display: none !important;
}

.mobile-menu-toggle span {
    display: none !important;
}

/* Hero Section - Full Screen */
.hero {
    color: white;
    padding: 0;
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.95), rgba(233, 30, 99, 0.95));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hero Slider Styles */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: var(--bg-light);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.service-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.service-duration {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-text {
    color: var(--text-light);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 2rem;
}

/* Admin Panel Styles */
.admin-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.admin-nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.admin-nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.admin-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    /* Prevent wrapping on mobile */
}

.table th {
    background: var(--bg-light);
    font-weight: bold;
    color: var(--primary-color);
}

.table tr:hover {
    background: var(--bg-light);
}

/* MOBILE RESPONSIVE - Hamburger Menu */
@media (max-width: 768px) {

    /* Keep logo visible and clickable on LEFT */
    .site-logo {
        display: block !important;
        color: white;
        font-size: 1.2rem;
        /* Slightly smaller on mobile */
        font-weight: 700;
        font-family: 'Playfair Display', serif;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        white-space: nowrap;
    }

    .logo-link {
        display: block !important;
        text-decoration: none;
        order: 1;
        /* Keep on LEFT */
    }

    /* Make header TRANSPARENT on mobile like desktop */
    .header {
        background: rgba(214, 51, 132, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
        max-width: 100%;
    }

    /* SHOW hamburger menu toggle button on mobile -  RIGHT SIDE */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
        position: relative;
        order: 2;
        /* Keep on RIGHT */
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* HIDE desktop navigation links, show them in slide-in menu */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, #D63384 0%, #B8285E 100%);
        padding: 5rem 0 2rem 0;
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .nav-links a::after {
        display: none;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* HERO - Responsive Title */
    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }


    /* ... existing mobile menu styles ... */

    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        /* overflow-x: hidden; - Removed to fix scrolling issues */
    }

    .admin-container {
        padding: 1rem 0;
    }

    .admin-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        /* overflow-x: hidden; - Removed to fix scrolling issues */
    }

    /* Fix form inputs on mobile */
    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* Critical for padding */
    }

    /* Fix Edit Site Page specific issues */
    .settings-section {
        padding: 0;
    }

    .settings-group {
        margin-bottom: 1.5rem;
    }

    /* Ensure images/videos don't overflow */
    img,
    video {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .service-content {
        padding: 1.5rem;
    }

    .admin-card {
        padding: 1rem;
        /* Smaller padding for very small screens */
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        margin-bottom: 0.5rem;
        text-align: center;
    }

    /* Fix table actions on mobile */
    .table td .btn {
        width: auto;
        margin-bottom: 0;
    }
}


/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #17a2b8;
}

/* Image Upload Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Video Embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Service Video Styles */
.service-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.service-video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-video-container:hover .service-video-overlay {
    opacity: 0.8;
}

.video-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Admin Panel Mobile Responsive */
@media (max-width: 768px) {
    .admin-container {
        padding: 0 15px;
        margin: 1rem auto;
    }

    .admin-card {
        padding: 1.5rem;
    }

    .admin-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Rich Content Styling for Dynamic Pages */
.page-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-content a:hover {
    border-bottom-color: var(--primary-color);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: #333;
}

body.dark-mode .site-logo {
    color: #fff;
}

body.dark-mode .nav-links a {
    color: #f0f0f0;
}

body.dark-mode .nav-links a:hover {
    color: var(--primary-color);
}

body.dark-mode .services,
body.dark-mode .watch-us,
body.dark-mode .contact,
body.dark-mode .page-content {
    background-color: #1a1a1a !important;
    color: #f0f0f0;
}

body.dark-mode .service-card,
body.dark-mode .gallery-item,
body.dark-mode .contact-item,
body.dark-mode .admin-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #fff;
}

body.dark-mode .footer {
    background: #000;
}

body.dark-mode .mobile-menu-toggle span {
    background-color: #fff;
}

body.dark-mode .nav.active {
    background: #1a1a1a;
}