@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.2.2/font/bootstrap-icons.css");

/* ----------------- Global Variables & Reset ----------------- */
:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --secondary-color: #f0fdfa;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --white: #ffffff;
    --bg-body: #f8fafc;
    --font-family: 'Outfit', sans-serif;
    /* Standardized Sizing Tokens */
    --size-title: 28px;
    --size-section: 18px;
    --size-body: 15px;
    --size-label: 14px;
    --radius-standard: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --component-height: 50px;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ----------------- Role Selection (Index Page) ----------------- */
.role-selection-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}

.role-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.role-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .role-card:hover {
        transform: translateY(-8px);
        border-color: var(--primary-color);
        box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
    }

.role-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.role-card:hover .role-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.role-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.role-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .role-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------- Components ----------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.4);
    }

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.profile-preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    padding: 2px;
    background: white;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
    transition: all 0.3s ease;
}

    .profile-preview-img:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    }.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .logo i {
        font-size: 1.8rem;
        color: var(--primary-color);
        -webkit-text-fill-color: initial;
    }

/* ----------------- Premium Login UI ----------------- */
.auth-body {
    background: #f8fafc;
    min-height: 100vh;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.auth-split-layout {
    display: flex;
    min-height: 100vh;
}

.auth-media-side {
    flex: 1;
    background: #f0fdfa;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .auth-media-side.patient-theme {
        background: #f0fdfa;
    }

    .auth-media-side.doctor-theme {
        background: #f0f9ff;
    }

.circle-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
    z-index: 1;
    filter: blur(60px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

.doctor-theme .circle-deco {
    background: rgba(37, 99, 235, 0.1);
    /* Blue for doctors */
}

.patient-theme .circle-deco {
    background: rgba(13, 148, 136, 0.1);
    /* Teal for patients */
}

.auth-illustration {
    position: relative;
    z-index: 2;
    max-width: 80%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: floatingImage 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    overflow: hidden;
}

    .auth-illustration::after {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transform: skewX(-20deg);
        animation: lightSweep 4s infinite;
    }

@keyframes lightSweep {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.auth-illustration:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(13, 148, 136, 0.2);
}

@keyframes floatingImage {

    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.circle-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
    z-index: 1;
    filter: blur(60px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }

    to {
        transform: scale(1.3) rotate(15deg);
        opacity: 0.8;
    }
}

.auth-form-side {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
}

.auth-nav-top {
    margin-bottom: 40px;
}

.btn-back-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

    .btn-back-link:hover {
        color: var(--primary-color);
    }

.auth-content-box {
    max-width: 480px;
    width: 100%;
    margin: auto;
}

.auth-header {
    margin-bottom: 40px;
}

    .auth-header h1 {
        font-size: 2.5rem;
        font-weight: 800;
        color: #111827;
        margin-bottom: 12px;
    }

    .auth-header p {
        color: var(--text-secondary);
        font-size: 1.1rem;
    }

.auth-input-group {
    margin-bottom: 24px;
}

    .auth-input-group label {
        display: block;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

.auth-field-wrapper {
    position: relative;
}

.auth-field-icon {
    position: absolute;
    left: 16px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

.auth-input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #f9fafb;
}

    .auth-input:focus {
        outline: none;
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    }

/* ----------------- Password Visibility Icon ----------------- */
.eye-icon {
    position: absolute;
    right: 16px;
    top: 0;
    height: 100%;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 10;
    transition: color 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

    .eye-icon:hover {
        color: var(--primary-color);
    }

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.forgot-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer-text {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

    .auth-footer-text a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
    }

/* ----------------- OTP Input Styling ----------------- */
.otp-input {
    width: 45px;
    height: 55px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #f9fafb;
    transition: all 0.2s ease;
}

    .otp-input:focus {
        outline: none;
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
        transform: translateY(-2px);
    }

.otp-input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 992px) {
    .auth-media-side {
        display: none;
    }

    .auth-form-side {
        padding: 30px 20px;
    }
}

/* ----------------- Navbar Refined (3-Column Grid) ----------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.nav-container {
    height: 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

    .nav-links a {
        text-decoration: none;
        color: #475569;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary-color);
        }

.nav-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-nav-login {
    background: var(--primary-color);
    color: white !important;
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

    .btn-nav-login:hover {
        background: var(--primary-dark);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    }

/* ----------------- Hero Section V2 ----------------- */
.hero-premium-v2 {
    position: relative;
    padding: 100px 0 40px;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
    overflow: hidden;
}

.hero-container-v2 {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-left-content {
    padding: 20px 0;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid #ccfbf1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.hero-title-v2 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

    .hero-title-v2 span {
        color: var(--primary-color);
    }

.hero-desc-v2 {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions-v2 {
    display: flex;
    gap: 20px;
}

.btn-premium-solid {
    background: var(--primary-color);
    color: #fff;
    padding: 18px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.25);
}

    .btn-premium-solid:hover {
        transform: translateY(-2px);
        background: var(--primary-dark);
    }

.btn-premium-outline {
    background: white;
    color: var(--text-primary);
    padding: 18px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    text-decoration: none;
}

    .btn-premium-outline:hover {
        background: #f8fafc;
    }

.hero-right-visual {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-hero-img-box {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

    .main-hero-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ----------------- Mini Cards (Floating Cards) ----------------- */
.mini-card {
    position: absolute;
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    min-width: 180px;
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.mc-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.mc-info h5 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
}

.mc-info span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.pos-1 {
    top: 80px;
    left: -40px;
}

.pos-2 {
    bottom: 100px;
    right: -40px;
    animation-delay: 1s;
}

/* ----------------- Common Section Styles ----------------- */
.section-padding {
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    margin-bottom: 25px;
}

    .section-header h2 {
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 10px;
        color: #1e293b;
    }

    .section-header p {
        color: #64748b;
        font-size: 1.1rem;
    }

.text-center {
    text-align: center;
}

/* ----------------- Features Section ----------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    }

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.35rem;
}

/* -----------------Doctor - Patients ----------------- */
.bg-teal-important {
    background-color: #0d9488 !important;
}

.bg-rose-important {
    background-color: #e11d48 !important;
}

.patient-avatar {
    background-color: #0d9488 !important;
}

/* ----------------- Specialties Section ----------------- */
.specialties {
    background: #f8fafc;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.specialty-card {
    background: #fff;
    padding: 20px 15px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

    .specialty-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }

    .specialty-card i {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 15px;
    }

/* ----------------- How It Works Section ----------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 25px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* ----------------- Visit Types Section ----------------- */
.types-grid {
    display: flex;
    justify-content: center;
}

.type-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

    .type-card:hover {
        transform: translateY(-5px);
        border-color: #14b8a6;
    }

.type-icon {
    width: 80px;
    height: 80px;
    background: #f0fdfa;
    color: #14b8a6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 30px;
}

.benefit-list {
    list-style: none;
    margin: 30px 0 40px;
    text-align: left;
    display: inline-block;
}

    .benefit-list li {
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: #475569;
    }

        .benefit-list li i {
            color: #14b8a6;
            font-size: 0.9rem;
        }

/* ----------------- Security Section ----------------- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.security-card {
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    text-align: center;
}

.sec-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: #f0fdfa;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* ----------------- Support Banner ----------------- */
.support-banner {
    margin-bottom: 80px;
}

.support-card {
    background: var(--primary-color);
    padding: 40px 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.support-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.support-icon {
    font-size: 3.5rem;
}

.support-text h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.support-phone {
    background: white;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* ----------------- Animations ----------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* ----------------- Responsive ----------------- */
@media (max-width: 992px) {
    .hero-container-v2 {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-actions-v2 {
        justify-content: center;
    }

    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-container {
        grid-template-columns: 1fr 1fr;
    }

    .support-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px;
    }

    .support-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* ----------------- FAQ Section ----------------- */
.faq-section {
    background: #f8fafc;
    padding: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.faq-question {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
    background: none;
    border: none;
    width: 100%;
}

    .faq-question i {
        color: #14b8a6;
        font-size: 0.9rem;
        transition: transform 0.3s;
    }

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: #14b8a6;
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.05);
}

    .faq-item.active .faq-answer {
        padding-bottom: 25px;
        max-height: 300px;
    }

    .faq-item.active .faq-question i {
        transform: rotate(180deg);
    }

/* ----------------- Footer CTA Overlay ----------------- */
.cta-section-footer {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

    .cta-section-footer h2 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .cta-section-footer p {
        font-size: 1.2rem;
        margin-bottom: 40px;
        opacity: 0.9;
    }

.btn-cta-white {
    background: white;
    color: #0f172a;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

    .btn-cta-white:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    }

/* ----------------- Main Footer (Premium Style) ----------------- */
.main-footer {
    background: linear-gradient(135deg, #0f172a 0%, #0d9488 100%);
    color: #fff;
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    font-size: 0.95rem;
}

    /* Geometric Pattern Overlay */
    .main-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
        opacity: 0.6;
        pointer-events: none;
    }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    align-items: start;
}

/* Brand Column */
.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #ccfbf1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

    .footer-brand .logo i {
        color: #ccfbf1;
        -webkit-text-fill-color: initial;
    }

.footer-brand p {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 350px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

    .social-links a {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        transition: all 0.3s;
        text-decoration: none;
        backdrop-filter: blur(5px);
        font-size: 0.9rem;
    }

        .social-links a:hover {
            background: var(--primary-color);
            box-shadow: 0 0 10px var(--primary-color);
            transform: translateY(-2px);
        }

/* Link Columns */
.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #cbd5e1;
        text-decoration: none;
        transition: all 0.3s;
        font-weight: 400;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: var(--primary-light);
            padding-left: 5px;
        }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
}

    .footer-bottom p {
        margin: 0;
    }

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand .logo,
    .social-links {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto 20px;
    }

    .footer-links a:hover {
        padding-left: 0;
        color: #fff;
    }

    .cta-section-footer h2 {
        font-size: 2.2rem;
    }
}

/* ----------------- Features Hero Section ----------------- */
.features-hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

    .features-hero-section::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        z-index: 0;
    }

/* ----------------- Empty State ----------------- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .empty-state i {
        font-size: 4rem;
        color: var(--primary-light);
        margin-bottom: 20px;
    }

    .empty-state h3 {
        color: var(--text-secondary);
        font-weight: 500;
        margin-bottom: 10px;
    }

    .empty-state p {
        color: var(--text-light);
        font-size: 1rem;
    }


/* ----------------- Modal Styles ----------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

    .modal.hidden {
        display: none;
    }

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

    .close-modal:hover {
        color: var(--text-primary);
    }

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------- Form Controls ----------------- */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-primary);
    }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #f9fafb;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    }


/* ----------------- Support Banner ----------------- */
.support-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

    .support-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -10%;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

.support-content-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 2;
}

.support-icon-large {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.support-text h3 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.support-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
}

.support-action {
    z-index: 2;
}

@media (max-width: 992px) {
    .support-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px;
    }

    .support-content-wrapper {
        flex-direction: column;
    }
}

/* ----------------- Success Color Variable ----------------- */
:root {
    --success: #10b981;
}

/* Spinner CSS */
.spinner-center {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.auth-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #2563eb;
    border-radius: 50%;
    animation: auth-spin 1s linear infinite;
}

@keyframes auth-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.doctor-theme .auth-spinner {
    border-top-color: #1e40af;
}

/* --- Global Error Styles --- */
.error-messages,
.text-danger,
.field-validation-error {
    color: #ef4444 !important;
    font-weight: 700 !important;
    font-size: 1rem;
    /* Slightly increased for better visibility */
    margin-top: 5px;
}


/* // Doctor Dashboard */
.dashboard-container {
    display: flex;
    background: #f8fafc;
    min-height: 100vh;
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid #e2e8f0;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    z-index: 1000;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px 40px;
    min-height: 100vh;
    width: calc(100% - 280px);
    /* Ensure it takes full remaining width */
}


.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 50px;
    padding-left: 20px;
    text-decoration: none;
}

    .sidebar .logo i {
        font-size: 1.8rem;
        color: var(--primary-color);
    }

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

    .menu li a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 14px 20px;
        border-radius: 16px;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .menu li a i {
            font-size: 1.25rem;
            width: 24px;
            display: flex;
            justify-content: center;
        }

        .menu li a:hover,
        .menu li a.active {
            background: var(--primary-light);
            color: var(--primary-color);
        }

.logout-item {
    margin-top: auto;
}

    .logout-item a {
        color: #ef4444 !important;
    }

        .logout-item a:hover {
            background: #fef2f2 !important;
        }

.notif-bell {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.profile-circle {
    width: 45px;
    height: 45px;
    background: #0d9488;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 30px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(241, 245, 249, 0.5);
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary-color);
}

/* ----------------- Dashboard Refinement (Green Theme) ----------------- */
.dash-welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 28px 32px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

    .dash-welcome-banner::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 400px;
        height: 400px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        pointer-events: none;
    }

    .dash-welcome-banner h1 {
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 8px;
        color: white !important;
    }

    .dash-welcome-banner p {
        font-size: 1.1rem;
        opacity: 0.9;
        margin: 0;
    }

.dash-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .dash-section-title i {
        color: var(--primary-color);
    }

.dash-glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

    .dash-glass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    }

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.action-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none !important;
    display: block;
}

    .action-card:hover {
        border-color: var(--primary-color);
        transform: scale(1.03);
        box-shadow: 0 12px 25px rgba(16, 185, 129, 0.1);
    }

.action-icon {
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    color: #10b981;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 15px;
    transition: all 0.3s;
}

.action-card:hover .action-icon {
    background: #10b981;
    color: white;
}

.action-card span {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.dash-table-container {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

    .dash-table th {
        background: #f8fafc;
        padding: 18px 25px;
        text-align: left;
        font-size: 0.85rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-bottom: 1px solid #f1f5f9;
    }

    .dash-table td {
        padding: 20px 25px;
        border-bottom: 1px solid #f8fafc;
        font-size: 1rem;
        vertical-align: middle;
    }

    .dash-table tr:hover {
        background: #fdfdfd;
    }

.dash-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.dash-badge-green {
    background: #dcfce7;
    color: #15803d;
}

.dash-badge-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.dash-stat-card {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.dash-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.dash-stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.dash-stat-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* // Doctor – My Schedule */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

    .schedule-card:hover {
        transform: translateX(5px);
        border-color: var(--primary-color);
    }

.time-slot {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* // Doctor Patients */
.patients-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.patient-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

    .patient-card:hover {
        transform: translateX(5px);
        border-color: var(--primary-color);
    }

/* // Doctor Appointment */
.upcoming-card {
    background: #fff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.appointment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
}

    .appointment-item:hover {
        background: #fcfdfe;
    }

.patient-name-bold {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.appointment-meta {
    text-align: right;
    color: var(--text-secondary);
    font-size: 1rem;
}

.status-badge-inline {
    padding: 6px 16px;
    border-radius: 50px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
}

/* // Doctor template */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.template-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

    .template-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.temp-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.temp-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.temp-type {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    color: var(--text-secondary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.temp-body-preview {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* // doctor -setiing */
.settings-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
}

/* // Patient-dashboard */
.dash-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dash-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.next-appt-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

    .next-appt-card::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 150px;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transform: skewX(-20deg) translateX(50px);
        pointer-events: none;
    }

/* // Patient-findcotor */
.doctors-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    min-height: 300px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

    .search-bar:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    }

    .search-bar input {
        border: none;
        background: transparent;
        width: 100%;
        font-size: 1.1rem;
        outline: none;
        margin-left: 10px;
        color: var(--text-primary);
    }

        .search-bar input:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }

.specialty-filter-container {
    margin-bottom: 40px;
}

.specialty-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.doctor-card-list {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s;
    animation: slideIn 0.5s ease-out;
}

    .doctor-card-list:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.doc-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .doc-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.doc-details {
    flex: 1;
}

.doc-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.doc-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.doc-meta {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

    .doc-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

.doc-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.doc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-book,
.btn-view {
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-book {
    background: var(--primary-color);
    color: white;
}

    .btn-book:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    }

.btn-view {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-view:hover {
        background: var(--primary-light);
    }

/* // patient -appoinments */
.appointments-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .filter-group label {
        font-size: 0.9rem;
        font-weight: 700;
        color: #475569;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .filter-group label i {
            color: var(--primary-color);
        }

.search-input-wrapper {
    position: relative;
    width: 350px;
}

    .search-input-wrapper i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }

    .search-input-wrapper input {
        width: 100%;
        padding: 12px 16px 12px 45px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #f8fafc;
        outline: none;
        transition: all 0.2s;
    }

        .search-input-wrapper input:focus {
            border-color: var(--primary-color);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
        }

.appointments-info-bar {
    background: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #64748b;
}

    .appointments-info-bar span {
        color: var(--primary-color);
        font-weight: 700;
    }

.appointments-table-container {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
}

    .appointments-table th {
        background: #f8fafc;
        padding: 18px 24px;
        text-align: left;
        font-size: 0.85rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-bottom: 1px solid #f1f5f9;
    }

    .appointments-table td {
        padding: 20px 24px;
        font-size: 0.95rem;
        color: #1e293b;
        border-bottom: 1px solid #f8fafc;
    }

    .appointments-table tr:hover {
        background: #fcfdfe;
    }

.status-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-confirmed {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: #f1efff;
    color: #7c3aed;
    font-size: 0.85rem;
}

    .action-btn:hover {
        transform: scale(1.1);
        background: #7c3aed;
        color: white;
    }

/* // Appointment Details SPA Styles */
.details-header {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

    .details-header .icon-box-large {
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
    }

    .details-header h2 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 8px;
    }

.details-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.status-pill-white {
    background: white;
    color: #0d9488;
    padding: 4px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
}

    .info-card h4 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f1f5f9;
    }

        .info-card h4 i {
            color: #0d9488;
        }

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.95rem;
}

    .info-label i {
        width: 16px;
        text-align: center;
    }

.info-value {
    font-weight: 600;
    color: #1e293b;
}

.schedule-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

    .schedule-header i {
        color: #0d9488;
    }

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f8fafc;
}

    .schedule-item:last-child {
        border-bottom: none;
    }

.prescriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.prescription-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

/* // patient -notifictaion */
#notif-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notif-card-modern {
    background: #fff;
    padding: 20px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

    .notif-card-modern:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-color);
    }

.notif-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-content-modern h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.notif-content-modern p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* //Doctor Template// */
.dashboard-content-wrapper {
    padding: 8px 16px;
}

.template-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .template-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

.temp-icon-container {
    width: 56px;
    height: 56px;
    background: #f0fdfa;
    color: #0d9488;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.temp-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.temp-type-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    width: fit-content;
}

.temp-body-preview {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
}

.btn-use-template {
    width: 100%;
    padding: 14px;
    background: #0d9488;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.form-group-custom {
    margin-bottom: 24px;
}

    .form-group-custom label {
        display: block;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 8px;
    }

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    background: #fcfcfd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
}

    .form-control-custom:focus {
        border-color: #0d9488;
        background: white;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    }

    .form-control-custom.error {
        border-color: #ef4444;
    }

.highlight-var {
    color: #0d9488;
    font-weight: 700;
}

@media (max-width: 768px) {
    .dashboard-content-wrapper {
        padding: 20px;
    }

    .template-card {
        max-width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* //Dashboard Header// */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    margin-bottom: 4px;
}

.header-welcome h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.header-welcome p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 4px 0 0 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.notif-bell-container {
    position: relative;
    cursor: pointer;
    color: #64748b;
    font-size: 1.4rem;
    transition: color 0.2s;
}

    .notif-bell-container:hover {
        color: #0d9488;
    }

.notif-badge-header {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.user-profile-circle {
    width: 44px;
    height: 44px;
    background: #0d9488;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #0d9488, 0 4px 15px rgba(13, 148, 136, 0.3);
}

    .user-profile-circle:hover {
        transform: scale(1.05);
    }

@media (max-width: 1024px) {
    .dashboard-header {
        padding: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }

    .sidebar {
        display: none;
    }
}

/* //Profile Dropdown// */
.profile-dropdown-container {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    min-width: 160px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    padding: 12px;
    z-index: 2000;
    display: none;
    transform-origin: top right;
}

    .profile-dropdown.show {
        display: block;
        animation: slideDown 0.2s ease-out;
    }

.logout-link-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ef4444 !important;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

    .logout-link-header:hover {
        background: #fef2f2;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* //Doctor Schedule// */
.schedule-container {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.schedule-day-group {
    margin-bottom: 32px;
}

    .schedule-day-group:last-child {
        margin-bottom: 0;
    }

.day-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .day-title i {
        color: #0d9488;
    }

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.slot-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

    .slot-item:hover {
        border-color: #0d9488;
        background: #f0fdfa;
    }

.slot-time {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.btn-remove-slot {
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

    .btn-remove-slot:hover {
        color: #ef4444;
    }

.empty-schedule {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

    .empty-schedule i {
        font-size: 3rem;
        color: #cbd5e1;
        margin-bottom: 16px;
    }

.btn-add-slot {
    background: #0d9488;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

    .btn-add-slot:hover {
        background: #0f766e;
    }

/* //Doctor Schedule Card UI// */
.schedule-card-v2 {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
}

.time-slot-v2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.slot-type-v2 {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
}

.slot-status-v2 {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-booked {
    background: #dcfce7;
    color: #166534;
}

.status-available {
    background: #f1f5f9;
    color: #475569;
}

.btn-trash-v2 {
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
}

    .btn-trash-v2:hover {
        color: #ef4444;
        background: #fef2f2;
        border-radius: 8px;
    }

.status-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.status-available-v2 {
    background: #f0fdf4;
    color: #166534;
}

.status-booked-v2 {
    background: #e0f2fe;
    color: #075985;
}

/* //Doctor Schedule Modal UI// */
.schedule-modal-form label {
    display: block;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-input-custom {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s;
    background: #fff;
    outline: none;
}

    .modal-input-custom:focus {
        border-color: #0d9488;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    }

/* //Doctor Schedule Modal Pill Buttons // */
.btn-pill-confirm {
    background-color: #0d9488 !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 12px 35px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3) !important;
    border: none !important;
}

.btn-pill-cancel {
    background-color: white !important;
    color: #0d9488 !important;
    border: 2px solid #0d9488 !important;
    border-radius: 50px !important;
    padding: 10px 33px !important;
    font-weight: 700 !important;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mb-6 {
    margin-bottom: 24px;
}



/* //Doctor Schedule Modal V3 Refinements// */
.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.modal-input-custom.error-border {
    border-color: #ef4444 !important;
}

.swal2-styled.swal2-cancel.btn-red-modal {
    background-color: #ef4444 !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    color: white !important;
}

/* //Doctor Schedule Edit Button// */
.btn-edit-v2 {
    color: #0d9488;
    font-size: 1.1rem;
    padding: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
}

    .btn-edit-v2:hover {
        background: #f0fdfa;
        border-radius: 8px;
    }

.swal2-actions {
    margin-top: 25px !important;
}

.modal-input-custom:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

/* //Doctor Schedule View Button// */
.btn-view-v2 {
    color: #64748b;
    font-size: 1.1rem;
    padding: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
}

    .btn-view-v2:hover {
        background: #f1f5f9;
        border-radius: 8px;
        color: #0d9488;
    }

/* --- Doctor - Patient -----------*/
.search-container {
    position: relative;
    max-width: 450px;
    width: 100%;
    margin-bottom: 35px;
}

    .search-container i {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 1.1rem;
        pointer-events: none;
        transition: color 0.3s;
    }

.search-bar {
    width: 100%;
    padding: 14px 20px 14px 55px;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    background: #fff;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .search-bar:focus {
        border-color: var(--primary-color);
        background: #fff;
        box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.1);
    }

.search-container:focus-within i {
    color: var(--primary-color);
}

.patient-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border: 1px solid #f8fafc;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .patient-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
        border-color: #e2e8f0;
    }

.patient-info strong {
    display: block;
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.patient-info small {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.history-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-back-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

    .btn-back-circle:hover {
        background: var(--primary-color);
        color: #fff;
        transform: translateX(-3px);
    }

.patient-profile-card {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    border: 1px solid #f8fafc;
}

.avatar-detail {
    width: 90px;
    height: 90px;
    background: var(--primary-color);
    border-radius: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

.history-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.2s;
}

    .history-card:hover {
        transform: scale(1.01);
    }

.history-card-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid #f8fafc;
    padding-bottom: 15px;
}

.history-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.history-type {
    background: #f0fdf4;
    color: #166534;
    padding: 4px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.history-notes {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

    .history-notes strong {
        color: #0f172a;
    }

.btn-view-history {
    background: var(--secondary-color);
    color: var(--primary-dark);
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-view-history:hover {
        background: var(--primary-color);
        color: #fff;
        box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.25);
    }

/* --- Patient -Prescription Style (Reference) --- */
.prescription-container {
    padding: 24px 0;
}

.prescriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.prescription-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1f5f9;
    max-width: 400px;
}

    .prescription-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.doc-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.presc-avatar-circle {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 0.9rem;
}

.doc-details h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.doc-details small {
    color: #64748b;
    font-size: 0.85rem;
}

.med-list {
    margin: 0 0 25px 0;
    padding-left: 20px;
    color: var(--text-secondary);
    list-style: disc;
}

    .med-list li {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

.prescription-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-presc-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

    .btn-presc-outline:hover {
        background: var(--primary-color);
        color: #ffffff !important;
    }

/* --- Prescription Detail Pad (Standard Format) --- */
.presc-pad {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    color: #334155;
    border-top: 8px solid var(--primary-color);
}

.pad-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.clinic-branded {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.doc-credentials h4 {
    margin: 0;
    color: #1e293b;
}

.doc-credentials p {
    margin: 2px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.patient-info-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.p-strip-item label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.p-strip-item span {
    font-weight: 600;
}

.rx-section {
    min-height: 250px;
    position: relative;
}

.rx-symbol {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: italic;
}

.presc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .presc-table th {
        text-align: left;
        padding: 10px;
        background: #f1f5f9;
        font-size: 0.8rem;
        text-transform: uppercase;
        color: #64748b;
    }

    .presc-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #f1f5f9;
    }

.sig-area {
    margin-top: 40px;
    text-align: right;
}

.sig-line {
    display: inline-block;
    border-top: 1px solid #cbd5e1;
    padding-top: 5px;
    min-width: 150px;
    text-align: center;
}

/* ==================== FIND DOCTOR SPA STYLES ==================== */

/* --- Doctor List View Styles --- */
.specialty-chip {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: var(--white);
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .specialty-chip:hover,
    .specialty-chip.active {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
    }

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    width: 100%;
}

    .doctor-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        transform: translateY(-4px);
    }

    .doctor-card .flex-1 {
        flex: 1;
    }

    .doctor-card .flex {
        display: flex;
    }

    .doctor-card .items-center {
        align-items: center;
    }

    .doctor-card .items-baseline {
        align-items: baseline;
    }

    .doctor-card .justify-end {
        justify-content: flex-end;
    }

    .doctor-card .gap-5 {
        gap: 1.25rem;
    }

    .doctor-card .gap-1\.5 {
        gap: 0.375rem;
    }

.doctor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

    .doctor-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.doctor-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Specialty Filter Chips */
.specialty-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

    .specialty-chip:hover {
        border-color: var(--primary-color);
        background: #f0fdfa;
        color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
    }

    .specialty-chip.active {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    }

    .specialty-chip i {
        font-size: 1rem;
    }

.search-container {
    max-width: 760px;
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 60px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    outline: none;
    font-size: 1rem;
    transition: all 0.3s;
}

    .search-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.15);
    }

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

    .search-btn i {
        font-size: 1rem;
    }

/* ============================================================== */
/* Patient Login -> Find Doctors Module Alignment & Height Fixes  */
/* ============================================================== */
#doctorListView.active {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#doctorListView > .mb-6 {
    width: 100%;
}

#doctorListView > .search-container {
    flex: 1;
    max-width: none;
    margin-right: 20px;
    margin-bottom: 30px;
}

#doctorListView > .position-relative {
    width: 250px !important;
    margin-bottom: 30px;
}

#doctorListView > #tblPageList {
    width: 100%;
}

/* Match search box perfectly to filter box height and style */
#doctorListView .search-input {
    padding: 11px 18px;
    /* Slightly reduced padding to match select box rendered height */
    padding-right: 60px;
    border: 2px solid #e2e8f0;
    /* Same exact border as .form-control */
    border-radius: 14px;
    /* Same exact radius as .form-control */
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
    box-shadow: none;
    /* Match flat filter box style */
}

    #doctorListView .search-input:focus {
        border-color: #0d9488;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
        /* Match .form-control:focus */
    }

#doctorListView .search-btn {
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

    #doctorListView .search-btn i {
        font-size: 1.1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }


/* --- Doctor Card Actions (Right Alignment) --- */
.doctor-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    min-width: 180px;
}

.btn-doctor-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 200px;
    text-align: center;
    padding: 10px 16px;
    border-radius: 10px; /* Updated to match pagination */
    font-weight: 700; /* Bold text */
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
}

    .btn-doctor-action.btn-primary,
    .btn-doctor-action.btn-outline-secondary {
        background-color: var(--primary-color) !important;
        color: white !important;
        border: none !important;
    }

        .btn-doctor-action.btn-primary:hover,
        .btn-doctor-action.btn-outline-secondary:hover {
            background-color: var(--primary-dark) !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
        }

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.btn-book {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    width: 100%;
    margin-bottom: 12px;
    cursor: pointer;
}

    .btn-book:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
    }

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    width: 100%;
    cursor: pointer;
}

    .btn-outline:hover {
        background: var(--primary-color);
        color: var(--white);
    }

/* --- Doctor Profile View Styles --- */
.profile-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-banner {
    height: 120px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.profile-content {
    padding: 20px 40px 40px 40px; /* Removed negative margin */
    margin-top: 0;
}

.profile-img-box {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 6px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #f8fafc;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .profile-img-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50%;
    }

.profile-info {
    margin-top: 20px;
}

    .profile-info h1 {
        font-size: 2.25rem;
        font-weight: 800;
        color: #064e4b; /* Deep Teal */
        margin-bottom: 4px;
    }

.profile-specialty {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.profile-stats {
    display: flex;
    gap: 40px;
    padding: 25px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.p-stat h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.p-stat span {
    color: #0d9488; /* Primary Green */
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.profile-details {
    margin-top: 30px;
}

    .profile-details h3.section-title {
        font-size: 1.4rem;
        color: #0f766e; /* Primary Dark Green */
        margin-bottom: 20px;
        font-weight: 800;
        position: relative;
        padding-left: 15px;
    }

        .profile-details h3.section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 20px;
            background: #0d9488;
            border-radius: 2px;
        }

.about-content {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid #0d9488;
}

    .about-content p {
        line-height: 1.8;
        color: #475569;
        font-size: 1.05rem;
        margin: 0;
    }

.action-bar {
    background: #fff;
    padding: 25px 40px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

    .price-tag span {
        font-size: 1rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

.btn-book-xl {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

    .btn-book-xl:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(13, 148, 136, 0.25);
    }

/* --- Booking Form Styles --- */
.booking-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    max-width: 650px;
    margin: 20px auto;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s;
    background: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

    .form-control:focus {
        border-color: #0d9488;
        outline: none;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    }

.btn-confirm {
    width: 100%;
    padding: 18px;
    background: #0d9488;
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    border: none;
    font-size: 1.1rem;
}

    .btn-confirm:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(13, 148, 136, 0.25);
    }

/* --- UI Helpers --- */
.view-container {
    display: none;
}

    .view-container.active {
        display: block;
    }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 24px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

    .btn-back:hover {
        color: #0d9488;
        transform: translateX(-4px);
    }

/* --- Animations --- */
.animate-fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUpSmooth 0.5s ease-out;
}

@keyframes slideUpSmooth {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Services Grid (Profile) --- */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s;
}

    .service-item:hover {
        border-color: var(--primary-color);
        transform: translateX(5px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    }

    .service-item i {
        color: var(--primary-color);
    }

/* --- Clinic Info Card --- */
.clinic-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

.clinic-info-item {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.c-icon {
    font-size: 1.5rem;
    color: #64748b;
}

/* --- Reviews Grid --- */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.rc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rc-stars {
    color: #f59e0b;
    font-size: 0.9rem;
}

.rc-user {
    font-weight: 600;
    color: var(--text-primary);
}

.rc-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .doctor-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .action-bar {
        flex-direction: column;
        gap: 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .clinic-card {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Booking Two-Column Layout --- */
.booking-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Left Column: Doctor Profile */
.booking-doctor-profile {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.booking-doc-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.booking-doc-img-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px auto;
}

.booking-doc-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0fdfa;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.15);
}

.booking-specialty-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e0f2fe;
    color: #0284c7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.booking-doc-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 15px 0;
}

.booking-doc-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 25px;
}

.booking-stat-item {
    text-align: center;
}

    .booking-stat-item h4 {
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--primary-dark);
        margin: 0 0 5px 0;
    }

    .booking-stat-item span {
        color: var(--text-secondary);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

.booking-doc-section {
    margin-bottom: 30px;
}

    .booking-doc-section h3 {
        font-size: 1.1rem;
        color: var(--text-primary);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
    }

        .booking-doc-section h3 i {
            color: var(--primary-color);
            font-size: 1.1rem;
        }

    .booking-doc-section p {
        line-height: 1.8;
        color: var(--text-secondary);
        font-size: 1rem;
        background: #fcfcfc;
        padding: 20px;
        border-radius: 12px;
        border-left: 4px solid var(--primary-color);
    }

.booking-services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

    .booking-service-item:hover {
        border-color: var(--primary-color);
        transform: translateX(3px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    }

    .booking-service-item i {
        color: var(--primary-color);
        font-size: 0.9rem;
    }

/* Right Column: Booking Form */
.booking-form-wrapper {
    display: flex;
    flex-direction: column;
}

.booking-form-card-v2 {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.booking-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.booking-fee-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f0fdfa;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #ccfbf1;
}

.booking-fee-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.booking-fee-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.booking-form-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.booking-form-group {
    display: flex;
    flex-direction: column;
}

.booking-label {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.booking-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s;
    background: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #1e293b;
}

    .booking-input:focus {
        border-color: var(--primary-color);
        outline: none;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    }

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.time-slot-btn {
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .time-slot-btn:hover {
        border-color: var(--primary-color);
        background: #f0fdfa;
        color: var(--primary-dark);
        transform: translateY(-2px);
    }

    .time-slot-btn.selected {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    }

    .time-slot-btn.disabled-slot {
        background-color: #fee2e2 !important;
        color: #991b1b !important;
        border-color: #fecaca !important;
        cursor: not-allowed;
        opacity: 1 !important;
        position: relative;
    }

    .time-slot-btn.disabled-slot:hover {
        animation: slot-shake 0.4s ease-in-out;
        background-color: #fecaca !important;
    }

@keyframes slot-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.btn-confirm-booking {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    border: none;
    font-size: 1.1rem;
}

    .btn-confirm-booking:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(13, 148, 136, 0.25);
    }

/* Responsive Design for Booking Layout */
@media (max-width: 1024px) {
    .booking-two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .booking-doctor-profile {
        position: relative;
        top: 0;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .booking-doc-stats {
        gap: 30px;
    }

    .booking-services-list {
        grid-template-columns: 1fr;
    }

    .time-slots-grid {
        grid-template-columns: 1fr;
    }

    .booking-form-card-v2,
    .booking-doctor-profile {
        padding: 25px;
    }
}



/*spinner css start*/

/*Loader Style */
@keyframes loader {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.spinner-center {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    position: fixed;
    /* Change from absolute to fixed */
    top: 0;
    /* Ensure it starts at the top of the viewport */
    left: 0;
    /* Ensure it starts at the left of the viewport */
    z-index: 999999999;
    padding: 0;
    margin: 0;
}

.loader div {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 20px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
}

.loader div {
    animation: loader 1s linear infinite;
    top: 100px;
    left: 100px
}

.spinner {
    width: 200px;
    height: 200px;
    display: inline-block;
    overflow: hidden;
}

.loader {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

    .loader div {
        box-sizing: content-box;
    }

.whiteBgSection {
    background: var(--white-color);
    padding: 10px;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .layoutSection {
        padding: 20px;
    }

    .whiteBgSection {
        padding: 20px;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    75%, 100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }
}

/* ----------------- Prescription Pad (Neat & Simple) ----------------- */
.prescription-paper {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    border-top: 6px solid var(--primary-color);
    padding: 40px;
    min-height: 800px;
    display: flex;
    flex-direction: column;
}

.rx-header {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rx-doctor-info {
    display: flex;
    gap: 20px;
}

.rx-doctor-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.rx-clinic-info {
    text-align: right;
}

.rx-patient-box {
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.rx-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-dark);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

.rx-value {
    font-weight: 600;
    color: var(--text-primary);
}

.rx-diagnosis-section {
    margin-bottom: 40px;
}

.rx-symbol {
    font-family: 'Outfit', serif;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-right: 15px;
    font-weight: 800;
}

.rx-table {
    width: 100%;
    margin-bottom: 40px;
}

    .rx-table th {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-secondary);
        border-bottom: 2px solid var(--secondary-color);
        padding: 12px;
    }

    .rx-table td {
        padding: 15px 12px;
        vertical-align: middle;
    }

.rx-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid var(--secondary-color);
}

.rx-signature {
    text-align: center;
    padding-top: 20px;
}

.rx-signature-line {
    border-bottom: 2px dashed var(--text-light);
    width: 180px;
    margin: 0 auto 10px;
    padding-bottom: 10px;
    font-family: 'Outfit', cursive;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.rx-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
}

/* ----------------- Impressive Modal Animation ----------------- */
.modal:not(.hidden) .modal-content {
    animation: modalEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Utility for impressive look */
.rx-p-0 {
    padding: 0 !important;
}

.rx-min-h-0 {
    min-height: 0 !important;
}

.rx-mb-4 {
    margin-bottom: 1.5rem !important;
}

.italic {
    font-style: italic;
}

/* Compact View Utilities */
.smaller {
    font-size: 0.85em;
}

/* --- Find Doctor Responsive --- */
@media (max-width: 768px) {
    .doctor-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .doctor-img {
        margin: 0 auto;
    }

    .doctor-card .flex-1 {
        text-align: center;
    }

        .doctor-card .flex-1 .flex {
            justify-content: center;
        }

    .doctor-card-actions {
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }

        .doctor-card-actions .text-right {
            text-align: center !important;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

    .btn-doctor-action {
        max-width: 100%;
    }
}



.uppercase {
    text-transform: uppercase;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Prescription List Action Buttons */
.btn-rx-action {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    cursor: pointer;
}

    .btn-rx-action.view {
        background-color: #f8fafc;
        color: #64748b;
    }

        .btn-rx-action.view:hover {
            background-color: var(--primary-color);
            color: white;
        }

    .btn-rx-action.edit {
        background-color: #eef2ff;
        color: #4f46e5;
    }

        .btn-rx-action.edit:hover {
            background-color: #4f46e5;
            color: white;
        }

    .btn-rx-action.delete {
        background-color: #fff1f2;
        color: #e11d48;
    }

        .btn-rx-action.delete:hover {
            background-color: #e11d48;
            color: white;
        }

/* ----------------- Global Variables & Reset ----------------- */
:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --secondary-color: #f0fdfa;
    --accent-color: #34d399;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --bg-body: #f8fafc;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ----------------- Notifications Page Styles ----------------- */

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.chip {
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

    .chip:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .chip.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

.text-action-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

    .text-action-btn:hover {
        color: var(--primary-dark);
    }

/* Notification List */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Notification Card */
.notif-card-modern {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-card-modern:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.notif-card-modern.unread {
    background: #f0fdfa;
    border-color: var(--primary-light);
}

/* Icon Box */
.card-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

    .card-icon-box.blue {
        background: #dbeafe;
        color: #2563eb;
    }

    .card-icon-box.green {
        background: #d1fae5;
        color: #059669;
    }

    .card-icon-box.purple {
        background: #ede9fe;
        color: #7c3aed;
    }

    .card-icon-box.orange {
        background: #fed7aa;
        color: #ea580c;
    }

    .card-icon-box.red {
        background: #fee2e2;
        color: #dc2626;
    }

/* Card Content */
.card-content {
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 16px;
}

    .card-header h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
    }

.time-badge {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Unread Indicator */
.unread-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--text-light);
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-modern p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notif-card-modern {
        padding: 16px;
    }

    .card-icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .card-header {
        flex-direction: column;
        gap: 8px;
    }

        .card-header h4 {
            font-size: 1rem;
        }

    .filter-bar {
        gap: 8px;
    }

    .chip {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}


/* --- Global Pagination --- */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.page-size-selector select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
    /* Space for the arrow */
    min-width: 70px;
}

    .page-size-selector select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    }

/* Pagination Theme Override - DoctorApp */
.pagination-page.light-theme.simple-pagination {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    /* Ensure content is not clipped */
}

    .pagination-page.light-theme.simple-pagination ul {
        display: flex;
        padding: 0;
        margin: 0;
        list-style: none;
        gap: 6px;
    }

    .pagination-page.light-theme.simple-pagination li {
        float: none;
        display: inline-block;
        margin: 0;
        padding: 0;
    }

        .pagination-page.light-theme.simple-pagination li.disabled {
            display: none;
            /* Hide disabled ellipsis or navigation if desired, or style as disabled */
        }

/* Ensure Prev/Next and active page look like buttons */
.light-theme.simple-pagination a,
.light-theme.simple-pagination span {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
    /* Side padding for better click area */
    min-width: 36px !important;
    height: 36px !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
    /* Prevent wrapping */
}

.light-theme.simple-pagination .current {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(13, 148, 136, 0.2) !important;
    cursor: default;
}

.light-theme.simple-pagination a:hover {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.pagination-page.light-theme .prev,
.pagination-page.light-theme .next {
    font-size: 0.8rem !important;
    padding: 0 16px !important;
    width: auto !important;
}

.hidden {
    display: none !important;
}

/* ── Appointment History: Content Card & Nav Strip ── */
#patientDetailSection {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 24px;
    min-height: 600px;
    margin: 20px;
}

    #patientDetailSection > div:first-child {
        margin: -24px -24px 20px -24px !important;
        padding: 10px 20px !important;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0 !important;
        border-radius: 0.5rem 0.5rem 0 0;
    }

        #patientDetailSection > div:first-child h1 {
            font-size: 1rem !important;
            font-weight: 500 !important;
            color: #475569 !important;
        }

        #patientDetailSection > div:first-child button i {
            font-size: 0.9rem !important;
        }

/* ── Patient Dashboard: Spacing Refinements ── */
.dashboard-wrapper {
    padding: 24px 28px !important;
    gap: 32px !important;
}

.patient-dashboard-stats {
    gap: 16px !important;
}

.dashboard-left > *,
.dashboard-right > * {
    margin-bottom: 20px !important;
}

.dashboard-right > .section-card:first-child {
    margin-top: 0 !important;
}

/* ── Patient Find Doctor: Toolbar & Search ── */
#doctorListView.active {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

#doctorListView > div.mb-6 {
    width: 100% !important;
}

#doctorListView .search-container {
    flex: 0 0 auto !important;
    width: 60% !important;
    max-width: 650px !important;
    margin: 0 24px 24px 0 !important;
}

#doctorListView .position-relative[style*="width: 250px"] {
    flex: 0 0 auto !important;
    width: 250px !important;
    margin: 0 0 24px 0 !important;
    z-index: 50 !important;
}

#SearchFields {
    background-color: #0d9488 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

    #SearchFields i {
        color: #ffffff !important;
        font-size: 16px !important;
        opacity: 1 !important;
    }

    #SearchFields:hover {
        background-color: #0f766e !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        transform: translateY(-50%) !important;
    }

#doctorListView #tblPageList {
    width: 100% !important;
    order: 10;
}

/* ── Doctor Patients: Table Typography ── */
.doctor-patients-table tbody td {
    padding: 16px 24px !important;
    vertical-align: middle !important;
    font-size: 14.5px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}

.doctor-patients-table tbody tr:hover td {
    background-color: #f8fafc;
}

.doctor-patients-table tbody td:nth-child(2) {
    text-align: left !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.doctor-patients-table thead th {
    padding: 14px 24px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.04em;
}

/* ============================================================== */
/* Patient Login -> Notifications UI Alignment & Search Fix       */
/* ============================================================== */

/* 1. Wrap flex container for search correctly & absolute position */
#notificationListSection .mb-6 > .flex.items-center {
    position: relative !important;
    width: 100% !important;
    max-width: 320px !important;
}

#notificationListSection .relative.w-full {
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. Format the search input */
#notificationListSection #searchInput {
    width: 100% !important;
    padding: 10px 16px !important;
    padding-right: 52px !important;
    /* Make room for the inside button */
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

    /* Replace blue default border with green project theme */
    #notificationListSection #searchInput:focus,
    #notificationListSection #searchInput:active {
        border-color: #0d9488 !important;
        box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
        outline: none !important;
    }

/* 3. Create a clean green search icon perfectly inside the input field */
#notificationListSection #SearchFields {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 50 !important;
}

    #notificationListSection #SearchFields:hover {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        transform: translateY(-50%) !important;
    }

    #notificationListSection #SearchFields i {
        font-size: 1.1rem !important;
        color: #0d9488 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        display: block !important;
    }

/* Pre-existing clear search button needs nudging further inside */
#notificationListSection #clearSearchBtn {
    right: 48px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

/* 4. Left Align Table data cleanly under headings */
#notificationListSection table th,
#notificationListSection table td:not([colspan]) {
    text-align: left !important;
    vertical-align: middle !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

    /* Allow sort icon to align normally behind text without shifting centering */
    #notificationListSection table th .sort-icon {
        margin-left: 6px !important;
        display: inline-block !important;
    }

/* 5. Style empty data message cleanly */
#notificationListSection table td[colspan] {
    text-align: center !important;
    padding: 40px !important;
    color: #64748b !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    background: #f8fafc !important;
    /* light neat bg */
    border-bottom: none !important;
}

/* 6. Pagination UI cleanup for padding and spacing */
#notificationListSection > .flex.justify-between.items-center.mt-4 {
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 20px !important;
    margin-top: 10px !important;
    width: 100% !important;
}


td:nth-child(5) > div.flex.gap-3:not(:has(button[title="Reschedule"])):hover::after {
    background-color: #2563eb;
    color: #ffffff;
}

/* Patient Login Page UI Updates */
.auth-media-side.patient-theme ~ .auth-form-side .auth-title {
    text-align: center !important;
    width: 100% !important;
}

.auth-media-side.patient-theme ~ .auth-form-side .auth-subtitle {
    display: none !important;
}

.auth-media-side.patient-theme ~ .auth-form-side #login-btn {
    font-size: 0 !important;
}

    .auth-media-side.patient-theme ~ .auth-form-side #login-btn::after {
        content: "Login";
        font-size: 1.1rem !important;
    }

/* Patient Forgot Password Page UI Updates */
.auth-media-side.patient-theme ~ .auth-form-side:has(#forgot-password-container) .auth-header {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

    .auth-media-side.patient-theme ~ .auth-form-side:has(#forgot-password-container) .auth-header .logo {
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
    }

/* Doctor Login Page UI Updates */
.auth-media-side.doctor-theme ~ .auth-form-side .auth-title {
    text-align: center !important;
    width: 100% !important;
}

.auth-media-side.doctor-theme ~ .auth-form-side .auth-subtitle {
    display: none !important;
}

.auth-media-side.doctor-theme ~ .auth-form-side #login-btn {
    font-size: 0 !important;
}

    .auth-media-side.doctor-theme ~ .auth-form-side #login-btn::after {
        content: "Login";
        font-size: 1.1rem !important;
    }

.auth-media-side.doctor-theme ~ .auth-form-side #register-link {
    font-size: 0 !important;
}

    .auth-media-side.doctor-theme ~ .auth-form-side #register-link::after {
        content: "Register here";
        font-size: 0.95rem !important;
    }

/* Doctor Forgot Password Page UI Updates */
.auth-media-side.doctor-theme ~ .auth-form-side:has(#forgot-password-container) .auth-header {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

    .auth-media-side.doctor-theme ~ .auth-form-side:has(#forgot-password-container) .auth-header .logo {
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
    }

    .auth-media-side.doctor-theme ~ .auth-form-side:has(#forgot-password-container) .auth-header p {
        display: none !important;
    }

/* --- Username Welcome Header Theme Fix --- */
#headerRightWelcomeName,
#headerWelcomeName {
    color: var(--primary-dark) !important;
}

.btn-confirm-swal {
    background-color: var(--primary-color, #0d9488) !important;
    color: white !important;
    border-radius: 8px !important;
}

.btn-swal-cancel {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}
/* --- Notifications UI --- */
.notification-container {
    width: 100%;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.notification-item-card {
    background: var(--white);
    border: 1.5px solid #94a3b8 !important;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    text-decoration: none !important;
}

    .notification-item-card:hover {
        transform: translateX(4px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-dark) !important;
    }

    .notification-item-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: var(--primary-color);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .notification-item-card:hover::before {
        opacity: 1;
    }

.notification-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #d1fae5 !important;
    color: #064e3b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1.5px solid #6ee7b7 !important;
}

.notification-item-card:hover .notification-icon-wrapper {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: scale(1.05);
}

.notification-content {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 800;
    color: #0f172a !important;
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -0.01em;
}

.notification-type-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1.5px solid transparent;
}

.notification-message {
    font-size: 15px;
    color: #334155 !important;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.notification-footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.notification-timestamp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #1e293b !important;
    font-weight: 600;
}

.type-appointment {
    background: #d1fae5 !important;
    color: #064e3b !important;
    border-color: #34d399 !important;
}

.type-system {
    background: #fef3c7 !important;
    color: #78350f !important;
    border-color: #f59e0b !important;
}

.type-alert {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #ef4444 !important;
}

.type-general {
    background: #d1fae5 !important;
    color: #064e3b !important;
    border-color: #10b981 !important;
}

