/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e86de;
    --secondary-color: #10ac84;
    --danger-color: #ee5a6f;
    --warning-color: #ffa502;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav>ul>li>a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

.main-nav>ul>li>a:hover {
    color: var(--primary-color);
}

.main-nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.main-nav>ul>li>a:hover::after {
    width: 100%;
}

/* User Menu */
.user-menu-wrapper,
.auth-menu-wrapper {
    position: relative;
    margin-left: 1rem;
}

.user-menu-trigger,
.auth-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 30px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #e0e6ed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.user-menu-trigger:hover,
.auth-menu-trigger:hover {
    background: linear-gradient(135deg, #4a9eff, #2e86de);
    color: var(--white);
    border-color: #4a9eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.user-menu-trigger:active,
.auth-menu-trigger:active {
    transform: translateY(0);
}

.user-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e6ed;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.user-menu-trigger:hover .user-avatar-small,
.auth-menu-trigger:hover .user-avatar-small {
    border-color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2);
    transform: scale(1.08) rotate(5deg);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    transition: color 0.35s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.user-menu-trigger:hover .user-name {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-menu-trigger .fa-chevron-down,
.auth-menu-trigger .fa-chevron-down {
    font-size: 0.65rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.3rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.user-menu-trigger:hover .fa-chevron-down,
.auth-menu-trigger:hover .fa-chevron-down {
    color: #ffffff;
    opacity: 1;
    transform: translateY(1px);
}

.user-menu-wrapper.active .user-menu-trigger,
.auth-menu-wrapper.active .auth-menu-trigger {
    background: linear-gradient(135deg, #4a9eff, #2e86de);
    color: #ffffff;
    border-color: #4a9eff;
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.4);
}

.user-menu-wrapper.active .user-menu-trigger .fa-chevron-down,
.auth-menu-wrapper.active .auth-menu-trigger .fa-chevron-down {
    transform: rotate(180deg) translateY(-1px);
    color: #ffffff;
    opacity: 1;
}

.user-menu-wrapper.active .user-menu-trigger .user-name,
.auth-menu-wrapper.active .auth-menu-trigger .user-name {
    color: #ffffff;
}

.user-menu-wrapper.active .user-menu-trigger .user-avatar-small,
.auth-menu-wrapper.active .auth-menu-trigger .user-avatar-small {
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    min-width: 240px;
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.dropdown-menu.show {
    max-height: 500px;
    padding: 0.6rem 0;
    border-color: var(--border-color);
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.35rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    flex-direction: row;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-menu a span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu a i {
    width: 22px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(46, 134, 222, 0.1), rgba(46, 134, 222, 0.05));
    color: var(--primary-color);
    padding-left: 1.6rem;
    border-left-color: var(--primary-color);
}

.dropdown-menu a:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.dropdown-menu a.logout-link {
    color: var(--danger-color);
}

.dropdown-menu a.logout-link i {
    color: var(--danger-color);
}

.dropdown-menu a.logout-link:hover {
    background: linear-gradient(90deg, #fee, transparent);
    color: var(--danger-color);
}

.dropdown-menu a.logout-link:hover i {
    color: var(--danger-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
    padding: 0 !important;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    padding: 0.75rem;
    transition: all 0.3s;
    border-radius: 8px;
    background: transparent;
    border: 2px solid transparent;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: var(--light-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i.fa-bars {
    transform: rotate(90deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    animation: wave 10s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.search-box {
    max-width: 650px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.search-box form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-box form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: transparent;
    color: var(--dark-color);
    outline: none;
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #1e6bc7);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 134, 222, 0.4);
    white-space: nowrap;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 134, 222, 0.6);
    background: linear-gradient(135deg, #1e6bc7, var(--primary-color));
}

.search-box button:active {
    transform: translateY(0);
}

/* Section */
.section {
    padding: 4rem 0;
}

.bg-light {
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

/* Grids */
.specialties-grid,
.hospitals-grid,
.doctors-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Cards */
.specialty-card,
.hospital-card,
.doctor-card,
.feature-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.specialty-card::before,
.hospital-card::before,
.doctor-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 134, 222, 0.1), transparent);
    transition: left 0.5s ease;
}

.specialty-card:hover::before,
.hospital-card:hover::before,
.doctor-card:hover::before,
.feature-card:hover::before {
    left: 100%;
}

.specialty-card:hover,
.hospital-card:hover,
.doctor-card:hover,
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Animation khi scroll vào view */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.specialty-image,
.hospital-image {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.specialty-card:hover .specialty-image,
.hospital-card:hover .hospital-image,
.feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--secondary-color);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.doctor-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(46, 134, 222, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.doctor-card:hover .doctor-avatar {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(16, 172, 132, 0.4);
    transform: scale(1.05);
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-avatar img {
    transform: scale(1.1);
}

.doctor-card h3 {
    margin-bottom: 0.5rem;
}

.doctor-card .specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.doctor-card .hospital {
    color: var(--gray);
    margin-bottom: 1rem;
}

.rating {
    margin: 1rem 0;
    color: var(--warning-color);
}

.rating i {
    margin-right: 2px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 1rem 0;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary::before,
.btn-secondary::before,
.btn-danger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-danger:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1e6bc7);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e6bc7, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 134, 222, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #0d8b6b);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0d8b6b, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 172, 132, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #d9465f);
    color: var(--white);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d9465f, var(--danger-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: #1e6bc7;
    text-decoration: underline;
    gap: 0.75rem;
}

.btn-link i {
    transition: transform 0.3s;
}

.btn-link:hover i {
    transform: translateX(3px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.auth-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-success {
    background: #efe;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-link a:hover {
    color: #1e6bc7;
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border-left: 6px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.dashboard-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-header .header-subtitle {
    color: var(--gray);
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 134, 222, 0.08), transparent);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.dashboard-header h1 {
    color: var(--dark-color);
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.dashboard-header p {
    color: var(--gray);
    font-size: 1.15rem;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 2.25rem 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
    border: 1px solid rgba(46, 134, 222, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 134, 222, 0.03), rgba(16, 172, 132, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: scale(0);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(46, 134, 222, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover::after {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.stat-card:nth-child(1) {
    border-top-color: var(--primary-color);
}

.stat-card:nth-child(2) {
    border-top-color: var(--warning-color);
}

.stat-card:nth-child(3) {
    border-top-color: var(--secondary-color);
}

.stat-card:nth-child(4) {
    border-top-color: #6c5ce7;
}

.stat-card:nth-child(5) {
    border-top-color: var(--danger-color);
}

.stat-card h3 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(1) h3 {
    color: var(--primary-color);
}

.stat-card:nth-child(2) h3 {
    color: var(--warning-color);
}

.stat-card:nth-child(3) h3 {
    color: var(--secondary-color);
}

.stat-card:nth-child(4) h3 {
    color: #6c5ce7;
}

.stat-card:nth-child(5) h3 {
    color: var(--danger-color);
}

.stat-card p {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.dashboard-nav {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(46, 134, 222, 0.1);
}

.dashboard-nav ul {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.dashboard-nav a {
    padding: 0.85rem 1.75rem;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid transparent;
    white-space: nowrap;
}

.dashboard-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #1e6bc7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 134, 222, 0.4);
    border-color: var(--primary-color);
}

.dashboard-nav a.active::before,
.dashboard-nav a:hover::before {
    opacity: 1;
}

.dashboard-nav a.active {
    background: linear-gradient(135deg, var(--primary-color), #1e6bc7);
    box-shadow: 0 4px 15px rgba(46, 134, 222, 0.35);
}

.dashboard-content {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.1);
}

.dashboard-content h2 {
    color: var(--dark-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--light-color);
    position: relative;
}

.dashboard-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: var(--white);
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: var(--white);
}

table th,
table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(222, 226, 230, 0.6);
    vertical-align: middle;
}

table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--primary-color);
}

table tbody tr {
    transition: all 0.2s ease;
    background: var(--white);
}

table tbody tr:hover {
    background: linear-gradient(90deg, rgba(46, 134, 222, 0.05), rgba(46, 134, 222, 0.02));
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Cell with Avatar */
.table-avatar-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-avatar-cell img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.table-avatar-cell:hover img {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(46, 134, 222, 0.3);
}

/* Badge Styles */
.badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.badge-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.badge-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-secondary {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.empty-state a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.empty-state a:hover {
    text-decoration: underline;
    color: #1e6bc7;
}

/* Search Doctors Page */
.filter-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(46, 134, 222, 0.1);
}

.search-form .form-row {
    margin-bottom: 1.5rem;
}

.doctors-section h2 {
    color: var(--dark-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--light-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doctors-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.result-count {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    margin-left: auto;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.doctor-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(46, 134, 222, 0.3);
}

.doctor-card:hover::before {
    transform: scaleX(1);
}

.doctor-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.doctor-card:hover .doctor-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(46, 134, 222, 0.3);
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
}

.doctor-info {
    flex: 1;
    text-align: center;
    margin-bottom: 1.5rem;
}

.doctor-info h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.doctor-degree {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.specialty,
.hospital,
.experience {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.specialty i,
.hospital i,
.experience i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.rating i.fas.fa-star {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating i.fas.fa-star-half-alt {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating i.far.fa-star {
    color: #ddd;
    font-size: 1.1rem;
}

.rating-value {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1rem;
}

.reviews-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.price {
    color: var(--dark-color);
    font-size: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price i {
    color: var(--secondary-color);
}

.price strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.doctor-actions {
    margin-top: auto;
    padding-top: 1.5rem;
}

.doctor-actions .btn-primary {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive for Doctors Grid */
@media (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .filter-box {
        padding: 1.5rem;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .doctor-card {
        padding: 1.5rem;
    }
    
    .doctor-avatar {
        width: 100px;
        height: 100px;
    }
    
    .doctors-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-count {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .filter-box {
        padding: 1.25rem;
    }
    
    .doctor-card {
        padding: 1.25rem;
    }
    
    .doctor-info h3 {
        font-size: 1.2rem;
    }
}

/* Appointments Page Enhancements */
.appointment-date-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
}

.appointment-date-cell strong {
    color: var(--dark-color);
    font-size: 1rem;
}

table tbody tr:hover .appointment-date-cell strong {
    color: var(--primary-color);
}

/* Enhanced Table Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem 1rem;
        min-height: 100px;
    }
    
    .stat-card h3 {
        font-size: 1.75rem;
    }
    
    .stat-card p {
        font-size: 0.85rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }
    
    .table-avatar-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .table-avatar-cell img {
        width: 40px;
        height: 40px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        min-width: 800px;
    }
    
    .filter-box {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Alert Improvements */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.4s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-error {
    background: linear-gradient(135deg, #fee 0%, #fff5f5 100%);
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.alert-success {
    background: linear-gradient(135deg, #efe 0%, #f0fff4 100%);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fffbf0 100%);
    color: #856404;
    border-left-color: var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #e8f4f8 100%);
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    margin: 0;
}

/* Section Spacing */
.section-spacing {
    margin-bottom: 2rem;
}

.section-spacing:last-child {
    margin-bottom: 0;
}

/* Grid Layout Improvements */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Card Improvements */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(46, 134, 222, 0.2);
}

/* Form Improvements */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
    transform: translateY(-1px);
}

/* Profile Form Enhancements */
.profile-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.1);
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--light-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h3 i {
    color: var(--primary-color);
}

.form-group small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-group small i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.disabled-input {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.hidden-input {
    display: none !important;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-color);
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--secondary-color);
}

/* Avatar Upload Improvements */
.avatar-upload-group {
    max-width: 400px;
    margin: 0 auto;
}

.avatar-upload-group input[type="file"] {
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(46, 134, 222, 0.05);
}

.uppercase-input {
    text-transform: uppercase;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
    border-left: 3px solid var(--danger-color);
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.error-message:not(:empty) {
    display: flex;
}

.error-message i {
    color: var(--danger-color);
}

/* Profile Avatar Animation */
.profile-avatar-wrapper img {
    transition: transform 0.3s ease;
}

/* Loading State */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Form Field Error States */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.valid:not(:placeholder-shown),
.form-group textarea.valid:not(:placeholder-shown) {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 172, 132, 0.1);
}

.profile-stats {
    margin-bottom: 2rem;
}

.profile-stats .stat-card:last-child h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.profile-stats .stat-card:last-child p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Doctors Search Page */
.doctors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.doctors-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-info {
    color: var(--gray);
    font-size: 0.9rem;
}

.doctor-schedule {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(46, 134, 222, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.doctor-schedule i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.6rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    min-width: 44px;
    justify-content: center;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 134, 222, 0.2);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0.6rem 0.5rem;
    color: var(--gray);
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: 36px;
    }
    
    .doctors-header,
    .appointments-header,
    .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-info {
        font-size: 0.85rem;
    }
}

/* Appointments Page */
.appointments-stats {
    margin-bottom: 2rem;
}

.appointments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.appointments-header h2,
.history-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-stats,
.prescriptions-stats {
    margin-bottom: 2rem;
}

.prescriptions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.prescriptions-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appointments-stats {
    margin-bottom: 2rem;
}

.form-actions-inline {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.form-actions-inline button,
.form-actions-inline a {
    white-space: nowrap;
}

.reason-text {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patient-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.text-muted {
    color: var(--gray);
    font-style: italic;
}

.btn-sm.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.rating {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.rating-stars {
    display: flex;
    gap: 0.1rem;
    color: #ffa502;
    font-size: 0.9rem;
}

.rating-stars i {
    font-size: 0.85rem;
}

.rating-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.rating-value strong {
    color: var(--dark-color);
}

.rating-value small {
    color: var(--gray);
}

/* Prescriptions Grid */
.prescriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.prescription-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.prescription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(46, 134, 222, 0.15);
}

.prescription-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prescription-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.prescription-card-title h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.prescription-card-title .prescription-date {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.prescription-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prescription-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(46, 134, 222, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.prescription-info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

.prescription-info-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.prescription-info-item strong {
    color: var(--text-color);
    font-size: 1rem;
}

.prescription-info-item span {
    color: var(--text-color);
    font-size: 0.95rem;
}

.prescription-info-item .diagnosis-text {
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
}

.prescription-card-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(46, 134, 222, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Prescription Detail */
.prescription-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 2rem;
}

.prescription-detail {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 3rem;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.1);
}

.prescription-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.prescription-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(46, 134, 222, 0.3);
}

.prescription-title h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.prescription-title .prescription-date {
    margin: 0.5rem 0 0 0;
    color: var(--gray);
    font-size: 1rem;
}

.prescription-info-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(46, 134, 222, 0.05);
    border-radius: 12px;
}

.prescription-info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.prescription-info-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prescription-info-col label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prescription-info-col label i {
    color: var(--primary-color);
}

.prescription-info-col strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

.prescription-info-col span {
    color: var(--text-color);
    font-size: 1rem;
}

.prescription-section {
    margin-bottom: 2rem;
}

.prescription-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(46, 134, 222, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prescription-content {
    padding: 1rem;
    background: rgba(46, 134, 222, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    line-height: 1.8;
    color: var(--text-color);
}

.medicines-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.medicines-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.medicines-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: var(--white);
}

.medicines-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.medicines-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(46, 134, 222, 0.1);
    color: var(--text-color);
}

.medicines-table tbody tr:hover {
    background: rgba(46, 134, 222, 0.05);
}

.medicines-table tbody tr:last-child td {
    border-bottom: none;
}

.prescription-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(46, 134, 222, 0.1);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.prescription-footer i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.prescription-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Responsive Prescriptions */
@media (max-width: 1024px) {
    .prescription-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .prescription-actions {
        position: static;
    }
}

@media (max-width: 768px) {
    .prescriptions-grid {
        grid-template-columns: 1fr;
    }
    
    .prescription-info-row {
        grid-template-columns: 1fr;
    }
    
    .prescription-detail {
        padding: 1.5rem;
    }
    
    .prescription-header {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .prescription-title h2 {
        font-size: 1.5rem;
    }
    
    .prescriptions-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.table-actions {
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Dashboard Quick Actions */
.dashboard-quick-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dashboard-quick-links {
    margin-bottom: 2rem;
}

.dashboard-quick-links h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(46, 134, 222, 0.15);
    text-decoration: none;
    color: var(--text-color);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quick-link-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.quick-link-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Stat Card with Icon */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Dashboard Section Header */
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-quick-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .dashboard-quick-actions .btn-primary,
    .dashboard-quick-actions .btn-secondary {
        width: 100%;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.payment-amount {
    color: var(--gray);
    font-size: 0.85rem;
}

.phone-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.phone-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.phone-link i {
    font-size: 0.9rem;
}

.profile-stats {
    margin-bottom: 2rem;
}

.char-count {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.char-count span {
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(46, 134, 222, 0.1);
}

.form-actions button[type="reset"] {
    background: var(--gray);
    color: var(--white);
}

.form-actions button[type="reset"]:hover {
    background: #5a6268;
}

/* Schedule Page Styles */
.schedule-stats {
    margin-bottom: 2rem;
}

.schedule-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.schedule-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-form-header h2 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-quick-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.schedule-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.schedule-day {
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--white);
    transition: all 0.3s ease;
}

.schedule-day:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(46, 134, 222, 0.1);
}

.schedule-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.schedule-day-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-day-actions {
    display: flex;
    gap: 0.5rem;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-slot-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.time-slot-label:hover {
    background: rgba(46, 134, 222, 0.05);
    border-color: rgba(46, 134, 222, 0.2);
}

.time-slot-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.time-slot-checkbox:checked + .time-slot-text {
    color: var(--primary-color);
    font-weight: 600;
}

.time-slot-text {
    font-size: 0.95rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    user-select: none;
}

.schedule-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.schedule-display {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.schedule-display h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.schedule-day-display {
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(46, 134, 222, 0.05) 0%, rgba(46, 134, 222, 0.02) 100%);
    transition: all 0.3s ease;
}

.schedule-day-display:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 134, 222, 0.15);
}

.schedule-day-display h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.schedule-times-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-times-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.schedule-times-list li i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.schedule-day-stats {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-color);
    text-align: right;
}

.schedule-day-stats small {
    color: var(--gray);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Schedule */
@media (max-width: 768px) {
    .schedule-form-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .schedule-quick-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .schedule-quick-actions button {
        width: 100%;
    }
    
    .schedule-days {
        grid-template-columns: 1fr;
    }
    
    .schedule-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .schedule-day-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-form-actions {
        flex-direction: column;
    }
    
    .schedule-form-actions button {
        width: 100%;
    }
}

.notes-cell {
    position: relative;
    display: inline-block;
}

.notes-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notes-cell:hover .notes-tooltip {
    opacity: 1;
    visibility: visible;
}

.notes-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark-color);
}

/* Responsive Notes Tooltip */
@media (max-width: 768px) {
    .notes-tooltip {
        display: none;
    }
    
    .notes-cell {
        cursor: pointer;
    }
}

/* Appointment Detail Page */
.appointment-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.appointment-detail-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.appointment-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.1);
}

.info-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(46, 134, 222, 0.1);
    padding-bottom: 0.75rem;
}

.doctor-info-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.doctor-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(46, 134, 222, 0.2);
}

.doctor-info-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.3rem;
}

.doctor-info-content .specialty-name {
    color: var(--primary-color);
    margin: 0.5rem 0;
    font-weight: 500;
}

.doctor-info-content .doctor-phone {
    color: var(--gray);
    margin: 0.5rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item label i {
    color: var(--primary-color);
}

.info-item strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

.info-item .amount {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.info-item p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.prescription-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.medicines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.medicines-list li {
    padding: 0.75rem;
    background: rgba(46, 134, 222, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.payment-section {
    position: sticky;
    top: 100px;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-id {
    font-family: monospace;
    background: rgba(46, 134, 222, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.review-section {
    position: sticky;
    top: 100px;
}

.rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.rating-input i {
    font-size: 2rem;
    color: var(--warning-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-input i:hover {
    transform: scale(1.2);
}

.rating-input i.fas {
    color: var(--warning-color);
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.review-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-display .rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-display .rating i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.rating-value {
    font-weight: 600;
    color: var(--text-color);
    margin-left: 0.5rem;
}

.review-comment {
    padding: 1rem;
    background: rgba(46, 134, 222, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin: 0;
    line-height: 1.6;
}

.review-date {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Appointment Detail */
@media (max-width: 1024px) {
    .appointment-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .payment-section,
    .review-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .doctor-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .info-section h2 {
        font-size: 1.2rem;
    }
}

/* Responsive Profile Form */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
}

/* Responsive Grid for Dashboard */
@media (max-width: 1200px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
    }
    
    .table-avatar-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .table-avatar-cell img {
        width: 50px;
        height: 50px;
    }
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Filter Box */
.filter-box {
    background: linear-gradient(135deg, var(--light-color), #fff);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.filter-box form {
    margin: 0;
}

.filter-box .form-group {
    margin-bottom: 0;
}

/* Info Section */
.info-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.info-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.info-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-color);
}

.info-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.info-section strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Actions Section */
.actions-section {
    background: linear-gradient(135deg, var(--white), #f8f9fa);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    position: sticky;
    top: 100px;
}

.actions-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.actions-section form {
    margin-bottom: 0;
}

.actions-section .btn-block {
    margin-bottom: 1rem;
}

/* Improved Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .dashboard-container {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-header {
        padding: 2rem 2rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.9rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
        min-height: 150px;
    }
    
    .stat-card h3 {
        font-size: 2.5rem;
    }
    
    .dashboard-content {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-content h2 {
        font-size: 1.5rem;
    }
    
    .info-section,
    .actions-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
    
    .dashboard-container {
        padding: 1.25rem 0.75rem;
    }
    
    .dashboard-header {
        padding: 1.75rem 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }
    
    .dashboard-header h1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .dashboard-header p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .stat-card {
        padding: 1.75rem 1.5rem;
        min-height: 140px;
        border-radius: 16px;
    }
    
    .stat-card h3 {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-card p {
        font-size: 0.95rem;
    }
    
    .dashboard-nav {
        padding: 1rem;
        border-radius: 14px;
        margin-bottom: 1.5rem;
    }
    
    .dashboard-nav ul {
        flex-wrap: wrap;
        gap: 0.6rem;
        justify-content: flex-start;
    }
    
    .dashboard-nav a {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .dashboard-content {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
    
    .dashboard-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        margin-top: 1.25rem;
    }
    
    table {
        min-width: 650px;
    }
    
    table th,
    table td {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .info-section,
    .actions-section {
        padding: 1.5rem;
        border-radius: 14px;
    }
    
    .info-section h2,
    .actions-section h2 {
        font-size: 1.3rem;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 0;
        display: none;
        flex-direction: column;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    .main-nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav>ul>li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
    }

    .main-nav>ul>li:last-child {
        border-bottom: none;
    }

    .main-nav>ul>li>a {
        padding: 1.2rem 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .main-nav>ul>li>a:hover {
        background: linear-gradient(90deg, rgba(46, 134, 222, 0.1), transparent);
        padding-left: 2rem;
    }

    .main-nav>ul>li>a::after {
        display: none;
    }

    .user-menu-wrapper,
    .auth-menu-wrapper {
        margin-left: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .user-menu-wrapper:last-child,
    .auth-menu-wrapper:last-child {
        border-bottom: none;
    }

    .user-menu-trigger,
    .auth-menu-trigger {
        width: 100%;
        justify-content: space-between;
        border-radius: 0;
        padding: 1.2rem 1.5rem;
        margin: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .user-menu-trigger:hover,
    .auth-menu-trigger:hover {
        background: linear-gradient(90deg, rgba(46, 134, 222, 0.1), transparent);
        transform: none;
        box-shadow: none;
    }

    .user-menu-wrapper.active .user-menu-trigger,
    .auth-menu-wrapper.active .auth-menu-trigger {
        background: linear-gradient(90deg, rgba(46, 134, 222, 0.15), transparent);
        border: none;
        box-shadow: none;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        margin-top: 0;
        top: auto;
        right: auto;
        max-height: 0;
        padding: 0;
        transform: none;
        opacity: 1;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown-menu.show {
        max-height: 500px;
        padding: 0.5rem 0;
        border-top-color: var(--border-color);
        transform: none;
        animation: slideDown 0.3s ease-out;
    }

    .dropdown-menu li {
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 0.9rem 1.5rem 0.9rem 3rem;
        border-left: none;
        background: transparent;
    }

    .dropdown-menu a:hover {
        padding-left: 3.5rem;
        background: linear-gradient(90deg, rgba(46, 134, 222, 0.1), transparent);
        border-left: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-box form {
        flex-direction: column;
    }

    .specialties-grid,
    .hospitals-grid,
    .doctors-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .search-box {
        margin-top: 1.5rem;
    }

    .search-box form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-box input {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .search-box button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .specialty-card,
    .hospital-card,
    .doctor-card,
    .feature-card {
        padding: 1.5rem;
    }

    .dashboard-nav ul {
        flex-direction: column;
    }

    .table-container {
        overflow-x: scroll;
    }

    .user-name {
        max-width: none;
    }

    .auth-menu-trigger i.fa-user-circle {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-content {
        padding: 0.75rem 0;
        flex-wrap: wrap;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .mobile-menu-toggle {
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .main-nav {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .specialty-card,
    .hospital-card,
    .doctor-card,
    .feature-card {
        padding: 1.25rem;
    }

    .user-menu-trigger,
    .auth-menu-trigger {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .user-avatar-small {
        width: 32px;
        height: 32px;
    }

    .user-name {
        font-size: 0.9rem;
    }

    .dropdown-menu a {
        padding: 0.8rem 1.25rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }

    .dropdown-menu a:hover {
        padding-left: 3rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .dashboard-container {
        padding: 1rem 0.5rem;
    }

    .dashboard-header {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
        margin-bottom: 1.25rem;
    }

    .dashboard-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .dashboard-header p {
        font-size: 0.9rem;
    }

    .dashboard-nav {
        padding: 0.75rem;
        border-radius: 12px;
        margin-bottom: 1.25rem;
    }

    .dashboard-nav ul {
        gap: 0.5rem;
        flex-direction: column;
    }

    .dashboard-nav a {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }

    .dashboard-content {
        padding: 1.5rem 1rem;
        border-radius: 14px;
    }

    .dashboard-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .stat-card {
        padding: 1.5rem 1.25rem;
        min-height: 130px;
        border-radius: 14px;
    }

    .stat-card h3 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-card p {
        font-size: 0.85rem;
    }

    .user-menu-trigger,
    .auth-menu-trigger {
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
    }

    .user-avatar-small {
        width: 28px;
        height: 28px;
        border-width: 2px;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    table {
        font-size: 0.8rem;
        min-width: 500px;
    }

    table th,
    table td {
        padding: 0.6rem 0.4rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .profile-avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .info-section,
    .actions-section {
        padding: 1rem;
    }
    
    .info-section h2,
    .actions-section h2 {
        font-size: 1.1rem;
    }
    
    .filter-box {
        padding: 1rem;
    }
    
    .filter-box form {
        flex-direction: column;
    }
    
    .filter-box .form-group {
        width: 100%;
    }
}

/* AI Chat */
.ai-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
}

.ai-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
}

.ai-chat-box.active {
    display: flex;
}

.ai-chat-header {
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.ai-chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.ai-chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
}

.message.user {
    background: var(--primary-color);
    color: var(--white);
    text-align: right;
}

.message.ai {
    background: var(--light-color);
}

/* Profile Avatar Section */
.profile-avatar-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--light-color), var(--white));
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.profile-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.profile-avatar-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: var(--white);
}

.profile-avatar-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 134, 222, 0.4);
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.avatar-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--white);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-upload-btn i {
    font-size: 1.5rem;
}

.avatar-upload-btn span {
    font-size: 0.9rem;
}

.avatar-upload-group {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.avatar-upload-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.avatar-upload-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.avatar-upload-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.avatar-upload-group input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
}

.avatar-upload-group input[type="file"]::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.avatar-upload-group input[type="file"]::-webkit-file-upload-button:hover {
    background: #1e6bc7;
}

.avatar-upload-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Responsive for Profile Avatar */
@media (max-width: 768px) {
    .profile-avatar-wrapper {
        width: 150px;
        height: 150px;
    }

    .avatar-upload-group {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-avatar-section {
        padding: 1.5rem 1rem;
    }

    .profile-avatar-wrapper {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

    .avatar-upload-btn i {
        font-size: 1.2rem;
    }

    .avatar-upload-btn span {
        font-size: 0.8rem;
    }
}

/* Dashboard Header Styles */
.dashboard-nav-header {
    margin-left: auto;
}

.dashboard-nav-header ul {
    gap: 0;
    justify-content: flex-end;
}

/* Animation Effects */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Card animations */
.stat-card,
.specialty-card,
.hospital-card,
.doctor-card,
.feature-card {
    animation: fadeInScale 0.6s ease-out;
}

/* Table row animations */
table tbody tr {
    animation: fadeIn 0.4s ease-out;
    animation-fill-mode: both;
}

table tbody tr:nth-child(1) { animation-delay: 0.05s; }
table tbody tr:nth-child(2) { animation-delay: 0.1s; }
table tbody tr:nth-child(3) { animation-delay: 0.15s; }
table tbody tr:nth-child(4) { animation-delay: 0.2s; }
table tbody tr:nth-child(5) { animation-delay: 0.25s; }
table tbody tr:nth-child(6) { animation-delay: 0.3s; }
table tbody tr:nth-child(7) { animation-delay: 0.35s; }
table tbody tr:nth-child(8) { animation-delay: 0.4s; }

/* Dashboard content animation */
.dashboard-content {
    animation: fadeIn 0.5s ease-out;
}

.dashboard-header {
    animation: slideInRight 0.6s ease-out;
}

.dashboard-nav {
    animation: fadeIn 0.7s ease-out;
}

/* Dashboard User Menu - Improved Styling */
.dashboard-user-menu {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0f8 100%) !important;
    color: #2d3748 !important;
    border-color: #cbd5e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 0.65rem 1.2rem !important;
    border-radius: 50px !important;
    border: 2px solid #cbd5e0 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard-user-menu:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: var(--white) !important;
    border-color: #667eea !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35), 0 3px 10px rgba(102, 126, 234, 0.2) !important;
}

.dashboard-user-menu:active {
    transform: translateY(0) scale(1) !important;
}

.dashboard-user-menu .user-avatar-small {
    border-color: #a0aec0 !important;
    border-width: 2.5px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-user-menu:hover .user-avatar-small {
    border-color: var(--white) !important;
    transform: scale(1.12) rotate(8deg) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
}

.dashboard-user-menu .user-name,
.dashboard-user-menu .dashboard-user-name {
    color: #2d3748 !important;
    font-weight: 600 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.02em !important;
    display: inline-block !important;
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.dashboard-user-menu:hover .user-name,
.dashboard-user-menu:hover .dashboard-user-name {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    transform: translateX(2px) !important;
}

.dashboard-user-menu.active .user-name,
.dashboard-user-menu.active .dashboard-user-name {
    color: var(--white) !important;
}

.dashboard-user-menu .fa-chevron-down {
    color: #718096 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0.8 !important;
}

.dashboard-user-menu:hover .fa-chevron-down {
    color: var(--white) !important;
    opacity: 1 !important;
    transform: translateY(3px) !important;
}

.dashboard-user-menu.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: var(--white) !important;
    border-color: #667eea !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35), 0 3px 10px rgba(102, 126, 234, 0.2) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.dashboard-user-menu.active .user-name,
.dashboard-user-menu.active .fa-chevron-down {
    color: var(--white) !important;
    opacity: 1 !important;
}

.dashboard-user-menu.active .fa-chevron-down {
    transform: rotate(180deg) translateY(-3px) !important;
}

.dashboard-user-menu.active .user-avatar-small {
    border-color: var(--white) !important;
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5) !important;
}

/* Dashboard Dropdown Menu - Enhanced Styling */
.user-menu-wrapper.active .user-dropdown.show {
    background: var(--white) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.5rem 0 !important;
    min-width: 200px !important;
    margin-top: 10px !important;
    animation: slideDownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-menu-wrapper.active .user-dropdown.show a {
    padding: 0.9rem 1.5rem !important;
    color: #2d3748 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 3px solid transparent !important;
    position: relative !important;
}

.user-menu-wrapper.active .user-dropdown.show a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu-wrapper.active .user-dropdown.show a:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%) !important;
    color: #667eea !important;
    padding-left: 1.8rem !important;
    transform: translateX(3px) !important;
}

.user-menu-wrapper.active .user-dropdown.show a:hover::before {
    transform: scaleY(1);
}

.user-menu-wrapper.active .user-dropdown.show a.logout-link {
    color: #e53e3e !important;
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 0.25rem !important;
    padding-top: 1rem !important;
}

.user-menu-wrapper.active .user-dropdown.show a.logout-link i {
    color: #e53e3e !important;
}

.user-menu-wrapper.active .user-dropdown.show a.logout-link:hover {
    background: linear-gradient(90deg, rgba(229, 62, 62, 0.1) 0%, rgba(229, 62, 62, 0.05) 100%) !important;
    color: #c53030 !important;
    border-left-color: #e53e3e !important;
}

.user-menu-wrapper.active .user-dropdown.show a.logout-link:hover::before {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.user-menu-wrapper.active .user-dropdown.show a i {
    width: 20px !important;
    text-align: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.user-menu-wrapper.active .user-dropdown.show a:hover i {
    transform: scale(1.15) rotate(5deg) !important;
    color: inherit !important;
}

/* Mobile Responsive for Dashboard Menu */
@media (max-width: 768px) {
    .dashboard-nav-header {
        margin-left: 0;
    }

    .dashboard-nav-header ul {
        justify-content: flex-start;
    }

    .dashboard-user-menu {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .dashboard-user-menu .user-avatar-small {
        width: 32px !important;
        height: 32px !important;
        border-width: 2px !important;
    }

    .dashboard-user-menu .user-name {
        font-size: 0.9rem !important;
        max-width: 120px !important;
    }

    .user-menu-wrapper.active .user-dropdown {
        min-width: 100% !important;
        margin-top: 8px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    .dashboard-user-menu {
        padding: 0.55rem 0.9rem !important;
        font-size: 0.85rem !important;
    }

    .dashboard-user-menu .user-avatar-small {
        width: 30px !important;
        height: 30px !important;
    }

    .dashboard-user-menu .user-name {
        font-size: 0.85rem !important;
        max-width: 100px !important;
    }

    .dashboard-user-menu .fa-chevron-down {
        font-size: 0.6rem !important;
    }
}

/* Doctor Detail Page Styles */
.doctor-detail {
    padding: 2rem 0;
}

.doctor-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.doctor-header .doctor-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(46, 134, 222, 0.2);
}

.doctor-header .doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-header .doctor-info {
    flex: 1;
}

.doctor-header .doctor-info h1 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 2rem;
}

.doctor-header .doctor-info .specialty {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
    font-weight: 500;
}

.doctor-header .doctor-info .rating {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doctor-header .doctor-info .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 1rem;
}

.doctor-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.schedule-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.schedule-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(46, 134, 222, 0.1);
    padding-bottom: 0.75rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.schedule-day {
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 5px;
    background: var(--light-color);
    transition: all 0.3s ease;
}

.schedule-day:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(46, 134, 222, 0.15);
    transform: translateY(-2px);
}

.schedule-day h3 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.schedule-day ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-day li {
    padding: 0.5rem 0;
    color: var(--dark-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-day li:last-child {
    border-bottom: none;
}

.reviews-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.reviews-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(46, 134, 222, 0.1);
    padding-bottom: 0.75rem;
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-item small {
    color: var(--gray);
    font-size: 0.9rem;
}

.booking-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.booking-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(46, 134, 222, 0.1);
    padding-bottom: 0.75rem;
}

/* Responsive for Doctor Detail */
@media (max-width: 768px) {
    .doctor-header {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-header .doctor-avatar {
        width: 150px;
        height: 150px;
    }
    
    .doctor-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .booking-section {
        position: static;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

/* Search Results Page */
.search-results-container {
    padding: 2rem 0;
}

.search-results-title {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.8rem;
}

.search-filters-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.search-filters-info p {
    margin: 0.5rem 0;
}

.clear-filters-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.clear-filters-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.search-results-grid {
    margin-top: 2rem;
}

/* Payment Page Styles */
.payment-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.payment-info h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(46, 134, 222, 0.1);
    padding-bottom: 0.75rem;
}

.payment-amount {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-option:hover {
    border-color: var(--primary-color);
    background: rgba(46, 134, 222, 0.05);
}

.payment-method-option input[type="radio"] {
    cursor: pointer;
}

.payment-method-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.payment-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}