/* -------------------------------------------------
   Font imports – keeps HTML untouched
--------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Open+Sans:wght@400;600;700&family=Poppins:wght@400;600;700&display=swap');

/* -------------------------------------------------
   Base styles
--------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #111;
    line-height: 1.6;
}

/* -------------------------------------------------
   Header / Top Nav Bar
--------------------------------------------------*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4B0082 0%, #6A0DAD 100%);
    padding: 15px 40px;
    color: white;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.logo-text {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 26px;
    gap: 12px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* Top Navigation */
.top-nav {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    border-radius: 8px;
}

.top-nav a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 25px;
}

.top-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFD700;
    transform: translateY(-2px);
}

.top-nav a::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    left: 50%;
    bottom: 8px;
    background-color: #FFD700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.top-nav a:hover::after {
    width: 80%;
}

.top-nav a.active {
    color: #FFD700;
    font-weight: 700;
    background-color: rgba(255, 215, 0, 0.1);
}

.top-nav a.active::after {
    width: 100%;
    background-color: #FFD700;
}

/* -------------------------------------------------
   Main Layout - Homepage
--------------------------------------------------*/
.main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
}

.text-container {
    max-width: 500px;
}

/* Headline Text */
.welcome {
    font-family: 'Dancing Script', cursive;
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.1;
    color: #4B0082;
}

.center-name {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.red   { color: #e53935; }
.green { color: #43a047; }
.blue  { color: #1e88e5; }

.location {
    margin-top: 15px;
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Image Styling */
.image-container img {
    width: 420px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: translateY(-5px);
}

/* -------------------------------------------------
   Page Layout - Treatment & About Pages
--------------------------------------------------*/
.page-container {
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #4B0082;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 400;
    margin: 0;
}

/* -------------------------------------------------
   Treatment Page Styles
--------------------------------------------------*/
.treatment-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #4B0082;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: #4B0082;
    position: relative;
}

.pricing-card.featured::before {
    content: "Recommended";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #4B0082;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

.pricing-card.premium {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #4B0082;
    margin-bottom: 10px;
}

.pricing-body p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #43a047;
    font-weight: bold;
}

/* Categories Section */
.categories-section {
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.category-1 { border-left: 5px solid #43a047; }
.category-2 { border-left: 5px solid #FF9800; }
.category-3 { border-left: 5px solid #f44336; }

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.category-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.category-icon {
    font-size: 32px;
}

.category-body h4 {
    color: #4B0082;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 20px;
}

.category-body p,
.category-body li {
    color: #555;
    line-height: 1.6;
}

.category-body ul {
    padding-left: 20px;
}

/* Hours Section */
.hours-section {
    margin-bottom: 40px;
}

.hours-card {
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
}

.hours-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hours-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hours-label {
    font-size: 20px;
    font-weight: 600;
}

.hours-time {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
}

/* -------------------------------------------------
   About Page Styles
--------------------------------------------------*/
.about-hero {
    margin-bottom: 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #4B0082;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #4B0082;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-section {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #4B0082;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: #4B0082;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Contact Info Section */
.contact-info-section {
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #4B0082;
    margin-bottom: 20px;
}

.contact-details p {
    color: #555;
    margin: 8px 0;
    font-size: 16px;
}

.contact-details p:first-child {
    font-weight: 600;
    color: #333;
}

/* -------------------------------------------------
   Login Page Styles
--------------------------------------------------*/
body.login-page {
    background-image: url('https://images.pexels.com/photos/4386467/pexels-photo-4386467.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 20px;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 60px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    color: #000;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #000;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    top: 30%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #444;
    font-size: 18px;
}

.login-box button {
    width: 100%;
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-box button:hover {
    background: linear-gradient(135deg, #3a006e 0%, #7B1FA2 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3);
}

/* -------------------------------------------------
   Footer
--------------------------------------------------*/
footer {
    background: linear-gradient(135deg, #2C1810 0%, #4B0082 100%);
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD700;
}

.footer-section p {
    margin: 8px 0;
    font-size: 16px;
    color: #ddd;
}

/* Legacy footer styles for existing pages */
.footer-links {
    text-align: center;
}

.footer-links p {
    margin: 6px;
    font-size: 15px;
}

/* -------------------------------------------------
   Dashboard Styles (for existing functionality)
--------------------------------------------------*/
.dashboard-container {
    display: flex;
}

.sidebar {
    width: 200px;
    background-color: #f5f5f5;
    padding: 20px;
    height: 100vh;
    border-right: 1px solid #ddd;
}

.sidebar a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background-color: rgba(75, 0, 130, 0.1);
    color: #4B0082;
}

.sidebar a.active {
    color: white;
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.main-content {
    flex: 1;
    padding: 30px;
    background-color: #f8f9ff;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
}

th {
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    color: white;
    font-weight: 600;
}

button, .btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #3a006e 0%, #7B1FA2 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

.modal {
    display: none;
    position: fixed;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    gap: 20px;
}

.half {
    flex: 1;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #4B0082;
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.1);
}

.modal.show {
    display: flex;
}

.update-scroll {
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    gap: 20px;
}

/* -------------------------------------------------
   Responsive Design
--------------------------------------------------*/
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }

    .top-nav {
        justify-content: center;
        width: 100%;
        gap: 20px;
        flex-wrap: wrap;
    }

    .top-nav a {
        font-size: 16px;
        padding: 10px 15px;
    }

    .main-container {
        padding: 30px 20px;
        gap: 30px;
    }

    .welcome { 
        font-size: 40px; 
    }
    
    .center-name { 
        font-size: 28px; 
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image-container img {
        width: 100%;
        max-width: 360px;
    }

    .pricing-grid,
    .categories-grid,
    .services-grid,
    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .login-box {
        padding: 40px 30px;
        margin: 20px;
    }

    .hours-info {
        flex-direction: column;
        gap: 10px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .modal-content {
        flex-direction: column;
        margin: 20px;
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .top-nav a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .welcome {
        font-size: 32px;
    }

    .center-name {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .pricing-card,
    .category-card,
    .service-card {
        padding: 20px;
    }

    .login-box {
        padding: 30px 20px;
    }
}

 .login-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: calc(100vh - 140px); /* Adjust for header/footer */
            padding: 20px;
        }

        .login-box {
            background-color: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 16px;
            padding: 60px;
            max-width: 550px;
            width: 100%;
            box-shadow: 0 0 25px rgba(0,0,0,0.35);
        }

            .login-box h2 {
                text-align: center;
                margin-bottom: 25px;
                font-family: 'Poppins', sans-serif;
                color: #000;
            }

            .login-box label {
                display: block;
                margin-bottom: 6px;
                font-weight: 600;
                color: #000;
            }

        .login-box input[type="text"],
        .login-box input[type="password"] {
            width: 100%;
            padding: 10px 12px;
            margin-bottom: 20px;
            border: none;
            border-radius: 6px;
            font-size: 16px;
        }

        .password-wrapper {
            position: relative;
        }

        .password-wrapper input {
            padding-right: 40px;
        }
  



        .login-box button {
            width: 100%;
            background-color: #4B0082;
            color: white;
            border: none;
            padding: 12px;
            font-size: 16px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s ease;
        }

        .login-box button:hover {
            background-color: #3a006e;
        }
