.top-bar {
    background: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    min-height: 40px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
}

.top-bar a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar i {
    margin-right: 0.5rem;
}

.navbar {
    background-color: white;
    padding: 1rem 0;
    min-height: 4rem;
    box-shadow: var(--shadow-sm);
}

.navbar-collapse {
    background-color: white;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 1000;
}

@media (min-width: 992px) {
    .navbar-collapse {
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
    }
}

.navbar-collapse .navbar-nav {
    background-color: white;
    padding: 0;
}

.navbar-collapse .dropdown-menu {
    background-color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.social-icons a {
    margin-right: 1rem;
    font-size: 1rem;
}

.social-icons a:last-child {
    margin-right: 0;
}

/* Variables */
:root {
    /* Colors */
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary-color: #a78bfa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #2e1065;
    --body-bg: #f8fafc;
    --heading-font: 'Quicksand', sans-serif;
    --body-font: 'Quicksand', sans-serif;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #7c3aed);
    --gradient-secondary: linear-gradient(135deg, #a78bfa, #8b5cf6);
    --gradient-dark: linear-gradient(135deg, #2e1065, #4c1d95);
    --gradient-icon: linear-gradient(135deg, #8b5cf6, #f8fafc);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Typing Animation */
@keyframes typing {
    0%, 100% { width: 0; }
    30%, 85% { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    width: 0;
    animation: 
        typing 6s steps(30) infinite,
        blink 0.8s step-end infinite;
    color: white;
}

/* Consultation Section */
.consultation-section {
    position: relative;
    background: url('../images/consultation.png') no-repeat center center;
    background-size: cover;
    color: white;
}

.consultation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.6), rgba(139, 92, 246, 0.5));
    z-index: 1;
}

.consultation-section .container {
    position: relative;
    z-index: 2;
}

.consultation-section .section-title,
.consultation-section .section-subtitle {
    color: white;
}

.consultation-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.consultation-card:hover {
    transform: translateY(-5px);
}

.consultation-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
}

.consultation-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consultation-features li {
    margin-bottom: 1rem;
    color: white;
}

.consultation-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.consultation-card h3 {
    color: white;
    margin-bottom: 1rem;
}

/* Section Borders */
.section-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.section-wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.section-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.section-wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

#home .wave-fill {
    fill: white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

#services .wave-fill {
    fill: var(--light-color);
}

#consultation .wave-fill {
    fill: white;
}

#about .wave-fill {
    fill: var(--primary-color);
    opacity: 0.1;
}

section {
    position: relative;
    margin: 0;
    padding: 6rem 0;
}

.map-container {
    height: 300px;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    overflow: hidden;
}

.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: #fff;
    border: none;
}

.contact-section {
    position: relative;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
}

.contact-section .card {
    background: white;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-section .card-title {
    color: var(--dark);
}

.contact-section .card-text {
    color: var(--gray);
}

.contact-section .section-title {
    color: var(--dark);
}

.contact-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: white;
}

.contact-section .card i {
    transition: transform 0.3s ease;
}

.contact-section .card:hover i {
    transform: scale(1.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Auth Section Styles */
.auth-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding-top: 120px; /* Account for header height */
}

.auth-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 1rem;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

.auth-form .form-floating label {
    padding: 0.75rem 1rem;
}

.auth-form .form-floating > .form-control:focus ~ label,
.auth-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    color: var(--primary-color);
}

.auth-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
}

.auth-form .btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
}

.auth-form .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.auth-form .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .alert {
    border: none;
    border-radius: 10px;
}

.auth-form .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.auth-form .alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Global styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #0284c7;
}

body {
    background-color: #f8f9fa;
    padding-top: 70px; /* Height of navbar */
    font-family: 'Quicksand', sans-serif;
    color: #1f2937;
    line-height: 1.6;
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

/* Patient Portal Navigation */
.navbar {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: #eff6ff;
    border-radius: 0.5rem;
}

.navbar-brand {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #111827;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

@media (min-width: 992px) {
    .navbar-nav .nav-link {
        border-radius: 0.5rem;
        margin: 0 0.25rem;
    }
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Dashboard Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.avatar.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar i {
    font-size: 1.25rem;
}

.avatar.avatar-sm i {
    font-size: 1rem;
}

.timeline-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

.btn-link {
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.8);
}

footer h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer .quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

footer .quick-links strong {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer .quick-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

footer .quick-links a:hover {
    color: var(--primary);
}

footer .social-links a {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

footer .contact-info {
    color: rgba(255, 255, 255, 0.8);
}

footer .contact-info i {
    color: var(--primary);
    width: 20px;
}

footer hr {
    opacity: 0.1;
    margin: 2rem 0;
}

.insurance-slider {
    padding: 4rem 0;
    background: var(--light-color);
}

.insurance-slider .container {
    overflow: hidden;
}

.logo-slider {
    display: flex;
    animation: slide 30s linear infinite;
    gap: 3rem;
}

.logo-slider .logo-item {
    flex: 0 0 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-slider .logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-slider img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.testimonials-section {
    margin-top: 0;
    padding: 6rem 0;
    background: url('../images/testimonials.jpg') center/cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/testimonials.jpg') center/cover no-repeat;
    z-index: 0;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--primary-rgb), 0.85);
    z-index: 1;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.testimonials-section::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    opacity: 0.1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    margin: 0 auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--primary-color);
}

.testimonial-author {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.why-choose-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.why-choose-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-choose-icon {
    background: var(--gradient-primary);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-choose-content {
    flex: 1;
}

.why-choose-content h6 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.why-choose-content p {
    margin: 0;
    color: var(--dark-color);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Hero Section */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77777778vh; /* 16:9 aspect ratio */
    min-width: 100%;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.header-wrapper {
    background: white;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    margin-top: -104px;
}

.hero-section .container {
    padding-top: 104px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}



.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .display-4,
.hero-section .lead {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.hero-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-section .btn-primary:hover {
    background: var(--gradient-secondary);
    border: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.hero-section .btn-outline-primary {
    border-color: white;
    color: white;
}

.hero-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

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

.hero-section .display-4 {
    animation: fadeInUp 1s var(--transition-normal) both;
}

.hero-section .lead {
    animation: fadeInUp 1s var(--transition-normal) 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1s var(--transition-normal) 0.4s both;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -1rem;
    right: -1rem;
    bottom: 1rem;
    left: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
}



.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Typography */
body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--body-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.display-4 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.6;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-normal),
                transform var(--transition-normal);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Images */
.img-fluid {
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.testimonial-image-wrapper {
    position: relative;
    display: inline-block;
}

.testimonial-image-wrapper img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-image-wrapper::after {
    content: '"';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: var(--gradient-icon);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
}

.img-fluid:hover {
    transform: translateY(-5px);
}

.navbar-brand img {
    border-radius: 0;
    box-shadow: none;
}

.navbar-brand img:hover {
    transform: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 70px;
    padding: 0.5rem 1rem;
}

.navbar .container {
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 3rem;
    padding: 0.5rem 0;
}



.navbar-nav {
    display: flex;
    gap: 1.5rem;
    margin: 0 2rem;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    transition: color var(--transition-normal);
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

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

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(139, 92, 246, 0.05);
    border-radius: 0.5rem;
}

.card {
    border: none;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

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

.card:hover::before {
    opacity: 0.05;
}

.card-title {
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.btn {
    position: relative;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0.4rem;
    overflow: hidden;
    transition: all var(--transition-normal);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: opacity var(--transition-normal);
    opacity: 0;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: var(--primary-color);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.form-control {
    border-radius: 5px;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.alert {
    border: none;
    border-radius: 5px;
    padding: 1rem;
}

.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

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

.table td {
    vertical-align: middle;
}

/* Dashboard cards */
.dashboard-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-card .card-footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
}

footer h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul li a,
footer .social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover,
footer .social-links a:hover {
    color: var(--primary);
}

footer .social-links a {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

footer hr {
    opacity: 0.1;
    margin: 2rem 0;
}

footer .text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Appointment cards */
.appointment-card {
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.appointment-card .card-body {
    padding: 1rem;
}

/* Medical record cards */
.medical-record-card {
    margin-bottom: 1rem;
}

.medical-record-card .card-body {
    padding: 1rem;
}

/* Profile picture */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Loading spinner */
.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(0,0,0,0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        padding: 0.5rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}
