html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f6f5f7;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

a, button {
    transition: all 0.3s ease;
}

/* 🔝 Header Layout: Welcome center */
.page-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px 0;
}

.page-header .welcome-text {
    font-size: 36px;
    color: #7b4397;
    margin: 0;
}

/* User Profile */
.user-profile {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.user-icon:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Shadow only */
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff; /* White background */
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Modern shadow */
    display: none;
    flex-direction: column;
    width: 200px; /* Wider for profile info */
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-dropdown.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10000; /* Above all */
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    70% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown Items (Login, Create Account) */
.dropdown-item {
    padding: 14px 20px;
    text-decoration: none;
    color: #000; /* Black text */
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    position: relative;
    display: block;
}

.dropdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1); /* Divider */
}

.dropdown-item:hover {
    background: #7b4397; /* Purple hover */
    color: #fff;
    transform: scale(1.02); /* Subtle animation */
}

/* 🆕 New Stylish Dropdown Button (Logout) */
.dropdown-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-button:hover {
    background: #dc3545; /* Modern Red for Logout */
    color: #fff;
    transform: scale(1.02);
}

/* Logged-In Info (Profile Pic + Name) */
.logged-in-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(123, 67, 151, 0.05); /* Light purple tint */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7b4397;
    margin-bottom: 10px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

/* Container (Restore Desktop Absolute Layout) */
.container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 768px;
    max-width: 100%;
    min-height: 550px;
    height: auto;
    overflow: hidden;
    margin-bottom: 20px;
    z-index: 10;
}

.form-container {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    background-color: #fff;
    z-index: 1;
}

.panel-inner {
    width: 100%;
    height: 100%;
}

.remedy-panel {
    left: 0;
    z-index: 2;
}

.blog-panel {
    left: 100%;
    z-index: 1;
}

.container.show-blog .remedy-panel {
    transform: translateX(-100%);
}

.container.show-blog .blog-panel {
    transform: translateX(-100%);
    z-index: 2;
}

.title {
    margin-top: 10px;
    font-size: 36px;
    color: #7b4397;
}

.description {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

.photo-section {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.remedy-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    width: 100%;
    justify-content: center;
}

.enter-button, .discover-button, .back-button, .details-button {
    background-color: #7b4397;
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(123, 67, 151, 0.2);
}

.discover-button {
    background-color: transparent;
    color: #7b4397;
    border: 2px solid #7b4397;
    padding: 10px 30px;
}

.back-button {
    background-color: white;
    color: #7b4397;
    margin-top: 20px;
}

.enter-button:hover, .back-button:hover, .details-button:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: #dc2430;
    color: white;
    box-shadow: 0 6px 20px rgba(220, 36, 48, 0.3);
}

.discover-button:hover {
    background-color: #7b4397;
    color: white;
    transform: translateY(-2px);
}

.overlay-container {
    background: linear-gradient(135deg, #7b4397 0%, #dc2430 100%);
    color: white;
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 10;
}

.container.show-blog .overlay-container {
    transform: translateX(-100%);
}

/* Team Members Section */
.team-section {
    width: 100%;
    text-align: center;
}

.team-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
}

.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    justify-items: center;
}

.blog-team .center-member {
    grid-column: span 2;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.team-member p {
    color: white;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.4;
}

.team-member p span {
    font-size: 10px;
    opacity: 0.8;
    display: block;
}

.team-member:hover img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animation Classes */
.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Section */
.overlay-content {
    width: 100%;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.overlay-content h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    transition: all 0.4s ease;
}

.overlay-content p {
    margin: 0 0 15px 0;
    font-size: 13px;
    transition: all 0.4s ease;
}

/* Hover Description on Team Profile Photos */
.photo-container {
    position: relative;
    display: inline-block;
}

.hover-info {
    position: absolute;
    background: rgb(255, 255, 255);
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 180px;
    pointer-events: none;
    z-index: 10;
}

/* Right Side Hover */
.photo-container[data-hover="right"] .hover-info {
    top: 50%;
    left: 110%;
    transform: translateY(-50%);
}

/* Left Side Hover */
.photo-container[data-hover="left"] .hover-info {
    top: 50%;
    right: 110%;
    transform: translateY(-50%);
}

/* Top Side Hover */
.photo-container[data-hover="top"] .hover-info {
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
}

/* Trigger Show on Hover */
.photo-container:hover .hover-info {
    opacity: 1;
    visibility: visible;
}

/* Toast Message Styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #323232;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: all 0.4s ease;
    z-index: 9999;
}

/* Show animation */
.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Form Styles for Login and Create Account */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

form label {
    font-size: 14px;
    color: #333;
}

form input {
    padding: 10px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

form button {
    background-color: #7b4397;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(123, 67, 151, 0.4);
}

form + a {
    display: block;
    margin-top: 20px;
    color: #7b4397;
    text-decoration: none;
    font-size: 14px;
}

form + a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-header .welcome-text {
        font-size: 28px;
    }
    .container {
        width: 90%;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .page-header {
        flex-direction: column;
        padding: 15px 0;
        text-align: center;
    }

    .page-header .welcome-text {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .user-profile {
        position: static;
        transform: none;
        margin-top: 10px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        min-height: auto;
    }

    .form-container {
        width: 100% !important;
        height: auto !important;
        min-height: 520px;
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        overflow: hidden !important;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .panel-inner {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    }

    /* Remedy Slider: Slides from Right */
    .remedy-panel .panel-inner {
        transform: translateX(0);
    }
    .remedy-panel.show-team .panel-inner {
        transform: translateX(-100%);
    }

    /* Blog Slider: Slides from Left */
    .blog-panel .panel-inner {
        transform: translateX(-100%);
    }
    .blog-panel.show-team .panel-inner {
        transform: translateX(0);
    }

    .panel-front, .panel-back {
        width: 100%;
        flex-shrink: 0;
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .panel-back {
        background: linear-gradient(135deg, #7b4397 0%, #dc2430 100%);
        color: white;
    }

    .panel-back .title {
        color: white;
    }

    .enter-button, .discover-button, .back-button {
        flex: 0 1 auto;
        min-width: 120px;
        padding: 12px 25px;
        font-size: 14px;
        border-radius: 25px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .button-group {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: auto;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .page-header .welcome-text {
        font-size: 20px;
    }
    .title {
        font-size: 24px;
    }
    .enter-button {
        width: 100%;
        padding: 12px 0;
    }
}
/* 🔥 Manage Profile Stylish Inputs & Buttons */
#manageProfileSection input[type="text"],
#manageProfileSection input[type="file"],
#manageProfileSection input[type="password"] {
  width: 90%;
  margin: 8px auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 12px;
  display: block;
  background-color: #f7f7f7;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  transition: 0.3s;
}

#manageProfileSection input:focus {
  border-color: #50c878; /* Light Green border on focus */
  background-color: #ffffff;
  outline: none;
}

/* Stylish Save Buttons */
#manageProfileSection button {
  width: 90%;
  margin: 10px auto;
  padding: 12px 0;
  background: linear-gradient(135deg, #6BCB77 0%, #4D96FF 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  display: block;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#manageProfileSection button:hover {
  background: linear-gradient(135deg, #4CAF50 0%, #00BCD4 100%);
  transform: scale(1.02);
}

/* 🔥 Toast Notification */
.toast {
  visibility: hidden;
  min-width: 220px;
  margin-left: -110px;
  background-color: #4CAF50;
  color: white;
  text-align: center;
  border-radius: 10px;
  padding: 10px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 20px;
  font-size: 14px;
  transition: all 0.5s;
}

.toast.show {
  visibility: visible;
  animation: fadein 0.3s, fadeout 0.3s 2.4s;
}

.toast.error {
  background-color: #f44336;
}

@keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to { bottom: 20px; opacity: 1; }
}

@keyframes fadeout {
  from { bottom: 20px; opacity: 1; }
  to { bottom: 0; opacity: 0; }
}


/* Enhanced profile icon style */
#manageProfileSection #previewPhoto {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7b4397;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}


#imageWrapper {
  position: relative;
  display: inline-block;
}

#imageWrapper label {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #7b4397;
  color: white;
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  font-size: 14px;
}

#previewPhoto {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7b4397;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
