/*
 * Planet Pets Veterinary Clinic Website
 * Responsive, Professional CSS Framework
 * Mobile-first approach with accessibility features
 */

/* ==========================================================================
   CSS RESET AND GENERAL STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: #2d3748;
    background-color: #FAFAFA;
    overflow-x: hidden;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background-color: #3498db;
    color: white;
}

::-moz-selection {
    background-color: #3498db;
    color: white;
}

/* Links */
a {
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
}

a:focus {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Form elements */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3.4rem;
    color: #1a202c;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Compact section title for appointments */
.appointments-header .section-title {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    color: #2c3e50;
    font-weight: 700;
}

/* ==========================================================================
   HEADER AND NAVIGATION
   ========================================================================== */

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 7rem;
}

.nav-logo h1 {
    font-size: 2.8rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Admin header title specifically */
.admin-header .nav-logo h1 {
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 1rem 1.5rem;
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.6rem;
}

/* Mobile nav link styles */
@media (max-width: 768px) {
    .nav-link {
        color: #ffffff;
        font-size: 1.8rem;
        padding: 1.5rem 2rem;
        border-radius: 0.8rem;
        min-width: 20rem;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link:hover,
    .nav-link.active {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-link.active::after {
        display: none;
    }
}

.nav-link:hover,
.nav-link.active {
    color: #4CAF50;
    background-color: transparent;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 0.3rem;
    background-color: #3498db;
    border-radius: 2px;
}

/* Mobile navigation toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.bar {
    width: 2.5rem;
    height: 0.3rem;
    background-color: #333;
    margin: 0.3rem 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile menu animations */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-0.5rem, 0.6rem);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-0.5rem, -0.6rem);
}

/* ==========================================================================
   MAIN CONTENT SECTIONS
   ========================================================================== */

.main {
    min-height: calc(100vh - 7rem);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('../images/hero_back_1.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 10rem 0 8rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Ensure text readability with overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0;
    margin-left: 5%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 55rem;
    text-align: left;
    padding-left: 0;
    margin-right: auto;
}

.hero-title {
    font-size: 4.8rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.025em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 2rem;
    color: #f8f9fa;
    margin-bottom: 3.5rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 55rem;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-image {
    display: none;
}

.hero-placeholder {
    font-size: 6rem;
    opacity: 0.8;
    animation: none;
}

/* Hero Images */
.hero-img {
    display: block;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    object-fit: cover;
}

.hero-img:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-img-main {
    width: 100%;
    max-width: 35rem;
    height: auto;
    aspect-ratio: 3/2;
    margin-bottom: 1.5rem;
}

.hero-img-secondary {
    width: 100%;
    max-width: 25rem;
    height: auto;
    aspect-ratio: 3/2;
    margin: 0 auto;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Services Section */
.services {
    padding: 8rem 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
}

.service-card h3 {
    font-size: 2.4rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.service-card p {
    color: #4a5568;
    font-size: 1.6rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Happy Pets Section */
.happy-pets {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.pets-showcase {
    display: flex;
    align-items: center;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pets-content {
    flex: 1;
    max-width: 50rem;
}

.pets-content .section-title {
    text-align: left;
    margin-bottom: 2.5rem;
    color: #1a202c;
}

.pets-description {
    font-size: 1.8rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.pets-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.6rem;
    color: #2d3748;
    font-weight: 500;
}

.feature-icon {
    font-size: 2rem;
    width: 3rem;
    text-align: center;
}

.pets-cta {
    margin-top: 2rem;
}

/* Pets Carousel */
.pets-carousel {
    flex: 1;
    max-width: 50rem;
    z-index: 1; /* Ensure carousel displays above other elements */
}

.carousel-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: white;
    width: 100%;
    height: 40rem; /* Set explicit height to match image height */
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.pet-image-card {
    position: relative;
    width: 100%;
    background: white;
}

.pet-img {
    width: 100%;
    height: 40rem;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.pet-image-card:hover .image-caption {
    transform: translateY(0);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn span {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
    line-height: 1;
}

.carousel-btn-prev {
    left: 1.5rem;
}

.carousel-btn-next {
    right: 1.5rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover,
.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Carousel Auto-hide Controls */
.carousel-container:not(:hover) .carousel-btn {
    opacity: 0.7;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

/* Contact Info Section */
.contact-info {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.contact-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-item h3 {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.contact-item p {
    color: #4a5568;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

/* Map Container Styles */
.map-container {
    margin-top: 5rem;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.map-container h3 {
    font-size: 2.2rem;
    color: #1a202c;
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0;
}

.map-embed {
    position: relative;
}

.map-embed iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
    transition: filter 0.3s ease;
}

.map-embed:hover iframe {
    filter: brightness(1.05);
}

.map-link {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
}

.map-link .btn {
    margin: 0 auto;
    min-width: 20rem;
}

/* Mobile responsiveness for map */
@media (max-width: 768px) {
    .map-container {
        margin-top: 3rem;
        border-radius: 0.8rem;
    }
    
    .map-container h3 {
        font-size: 2rem;
        padding: 2rem 1.5rem 1rem;
    }
    
    .map-embed iframe {
        height: 250px;
    }
    
    .map-link {
        padding: 1.5rem;
    }
    
    .map-link .btn {
        min-width: auto;
        width: 100%;
        max-width: 30rem;
    }
}

/* ==========================================================================
   BUTTONS AND FORM ELEMENTS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-small {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
}

.btn-large {
    padding: 1.8rem 3.6rem;
    font-size: 1.8rem;
}

.btn-full-width {
    width: 100%;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Elements */
.form-group {
    margin-bottom: 2.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #1a202c;
    font-size: 1.5rem;
    letter-spacing: 0.025em;
}

.required {
    color: #e74c3c;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1.3rem 1.6rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    background-color: white;
    transition: all 0.3s ease;
    font-weight: 400;
    line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
    background-color: #ffeaea;
}

.form-textarea {
    resize: vertical;
    min-height: 12rem;
    font-family: inherit;
}

.field-error {
    color: #e74c3c;
    font-size: 1.4rem;
    margin-top: 0.8rem;
    display: block;
}

.field-error:empty {
    display: none;
}

/* Disabled option styles */
.form-select option:disabled {
    color: #999 !important;
    background-color: #f5f5f5 !important;
    font-style: italic;
}

.form-select option:disabled:hover {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

/* Checkbox and Radio Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.6rem;
    margin-bottom: 0;
}

.checkbox-input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    position: relative;
    width: 2rem;
    height: 2rem;
    border: 2px solid #e0e6ed;
    border-radius: 0.4rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.checkbox-input:checked + .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Password Input Container */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    opacity: 1;
}

/* ==========================================================================
   APPOINTMENT BOOKING PAGE
   ========================================================================== */

.appointment-section {
    padding: 4rem 0;
    background-color: white;
    min-height: 100vh;
}

.appointment-header {
    text-align: center;
    margin-bottom: 4rem;
}

.appointment-header h1 {
    font-size: 3.8rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.appointment-header p {
    font-size: 1.9rem;
    color: #4a5568;
    max-width: 60rem;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Professional Trust Section */
.appointment-trust-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 4rem 0;
    margin-bottom: 4rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.trust-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trust-text {
    flex: 1.2;
}

.trust-text h2 {
    font-size: 2.9rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.trust-text p {
    font-size: 1.7rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trust-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.feature-icon {
    font-size: 2rem;
    width: 3rem;
    text-align: center;
}

.trust-image {
    flex: 0.8;
    text-align: center;
}

.doctor-dog-img {
    max-width: 100%;
    width: auto;
    max-height: 35rem;
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: all 0.3s ease;
}

.doctor-dog-img:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.appointment-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 4rem 0;
    margin-bottom: 4rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.appointment-form-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.form-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #ecf0f1;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-section h2::before {
    content: '';
    width: 4rem;
    height: 0.3rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.form-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.success-message h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.error-message {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.error-message p {
    font-size: 1.6rem;
    margin: 0;
}

/* Loading Spinner */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}

.spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading p {
    color: #7f8c8d;
    font-size: 1.6rem;
}

/* ==========================================================================
   ADMIN LOGIN PAGE
   ========================================================================== */

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
}

.login-container {
    max-width: 45rem;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-header h1 {
    font-size: 3.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.login-header p {
    color: #7f8c8d;
    font-size: 1.6rem;
}

.login-form .form-group {
    margin-bottom: 2.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.link {
    color: #3498db;
    text-decoration: underline;
    font-size: 1.4rem;
}

.link:hover {
    color: #2980b9;
}

.security-notice {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-top: 3rem;
}

.security-notice h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.security-notice ul {
    list-style: none;
}

.security-notice li {
    color: #7f8c8d;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.security-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */

.admin-body {
    background-color: #f1f3f4;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 7rem;
}

.admin-nav-logo h1 {
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
}

.admin-nav-user {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.admin-user-info {
    color: white;
    font-size: 1.4rem;
    opacity: 0.9;
}

.admin-main {
    min-height: calc(100vh - 7rem);
    padding: 3rem 0;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dashboard-header {
    margin-bottom: 4rem;
}

.dashboard-header h1 {
    font-size: 3.6rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-weight: 700;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.controls-left h2 {
    font-size: 2.8rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.controls-right {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    min-width: 25rem;
}

/* Appointments Table */
.appointments-table-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
}

.appointments-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.appointments-table th {
    padding: 2rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.appointments-table td {
    padding: 1.8rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    font-size: 1.4rem;
    vertical-align: top;
}

.appointments-table tbody tr {
    transition: all 0.3s ease;
}

.appointments-table tbody tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-rescheduled {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Action Buttons in Table */
.table-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-table {
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    border-radius: 0.4rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
}

.empty-state-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #7f8c8d;
    font-size: 1.6rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 2rem;
}

.pagination-info {
    color: #7f8c8d;
    font-size: 1.4rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid #e0e6ed;
    background: white;
    color: #2c3e50;
    font-size: 1.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover,
.page-number.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 50rem;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-large {
    max-width: 80rem;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-5rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 2.5rem 3rem;
    border-bottom: 2px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 2.4rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    font-size: 3rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.modal-body {
    padding: 3rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 2.5rem 3rem;
    border-top: 2px solid #f1f3f4;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Appointment Details Modal */
.appointment-details {
    margin-bottom: 3rem;
}

.detail-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.5rem;
}

.detail-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.8rem;
}

.detail-label {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.6rem;
    color: #2c3e50;
    font-weight: 500;
}

.appointment-actions {
    margin-bottom: 3rem;
}

.appointment-actions h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.status-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.appointment-notes h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* ==========================================================================
   TOASTS
   ========================================================================== */

.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    max-width: 40rem;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: toastSlideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-toast {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.error-toast {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.toast-icon {
    font-size: 2rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
}

.toast-close:hover {
    opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section h3 {
    font-size: 2.4rem;
}

.footer-section h4 {
    font-size: 1.8rem;
    color: #bdc3c7;
}

.footer-section p {
    color: #bdc3c7;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #bdc3c7;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 1.4rem;
}

/* ==========================================================================
   PHONE VERIFICATION STYLES
   ========================================================================== */

.phone-verification-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-verification-container .form-input {
    flex: 1;
}

.verify-btn {
    white-space: nowrap;
    min-width: 9rem;
    font-size: 1.4rem;
    padding: 0.8rem 1.2rem;
    height: 4.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-verification-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.phone-verification-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.phone-verification-status.verified {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.phone-verification-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verification-icon {
    font-size: 1.6rem;
    min-width: 2rem;
}

.verification-text {
    flex: 1;
}

/* OTP Modal Styles */
.otp-step {
    text-align: center;
    padding: 1rem 0;
}

.phone-display {
    font-weight: 600;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 1rem 0 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.otp-input-container {
    margin: 2rem 0;
}

#otp-input {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.8rem;
    max-width: 20rem;
    margin: 0 auto;
    padding: 1.5rem;
    border: 3px solid #dee2e6;
    border-radius: 12px;
    background-color: #fff;
}

#otp-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.otp-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.otp-timer {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #6c757d;
    font-weight: 500;
}

/* Disabled button states for phone verification */
.btn:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

.btn:disabled:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    transform: none;
}

/* Specific styling for the send OTP button when disabled */
#send-otp-btn:disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

#send-otp-btn:disabled:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
}

#recaptcha-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    min-height: 78px;
}

/* Responsive phone verification */
@media (max-width: 768px) {
    .phone-verification-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .verify-btn {
        min-width: auto;
        width: 100%;
    }
    
    .otp-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .otp-actions .btn {
        width: 100%;
        max-width: 25rem;
    }
    
    #otp-input {
        max-width: 100%;
        font-size: 2rem;
        letter-spacing: 0.5rem;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Mobile-first responsive breakpoints */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .nav-menu {
        position: fixed;
        top: 7rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 7rem);
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 5rem;
        gap: 3rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pets-showcase {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .pets-content .section-title {
        text-align: center;
    }

    .pets-images {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .main-pet,
    .secondary-pet {
        flex: none;
        width: 100%;
        max-width: 40rem;
        margin-top: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .appointment-form {
        padding: 3rem 2rem;
    }

    .appointment-trust-section {
        padding: 3rem 2rem;
    }

    .trust-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .dashboard-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls-right {
        justify-content: stretch;
        flex-direction: column;
    }

    .search-input {
        min-width: auto;
    }

    .appointments-table-container {
        overflow-x: auto;
    }

    .appointments-table {
        min-width: 80rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 2rem;
        max-height: 70vh;
    }

    .modal-header,
    .modal-footer {
        padding: 2rem;
    }

    .status-buttons {
        justify-content: center;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-container,
    .admin-nav-container,
    .admin-container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .appointment-form {
        padding: 2rem 1.5rem;
    }

    .appointment-trust-section {
        padding: 2rem 1.5rem;
    }

    .login-container {
        padding: 3rem 2rem;
    }

    .btn-large {
        padding: 1.5rem 2.5rem;
        font-size: 1.6rem;
    }

    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    }

    .modal-header h2 {
        font-size: 2rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 58%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem 0.8rem;
        min-height: 5.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
}

/* Large desktop styles */
@media (min-width: 1441px) {
    html {
        font-size: 65%;
    }

    .container,
    .admin-container {
        max-width: 1400px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .btn,
    .form-actions,
    .modal,
    .toast {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }

    .main {
        padding: 0;
    }

    .appointments-table {
        border-collapse: collapse;
    }

    .appointments-table th,
    .appointments-table td {
        border: 1px solid #000;
        padding: 8px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-placeholder {
        animation: none;
    }
}

/* ==========================================================================
   ENHANCED ADMIN DASHBOARD STYLES
   ========================================================================== */

/* Admin Dashboard Welcome Section */
.dashboard-welcome {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    border-radius: 1.5rem;
    margin-bottom: 4rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.welcome-text-content {
    flex: 1;
    max-width: 60rem;
}

.dashboard-title {
    font-size: 4.2rem;
    color: #1a202c;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

.dashboard-description {
    font-size: 1.9rem;
    color: #4a5568;
    line-height: 1.6;
    font-weight: 400;
    max-width: 55rem;
}

.welcome-image {
    flex: 0.6;
    text-align: center;
}

.dashboard-img {
    max-width: 100%;
    width: auto;
    max-height: 30rem;
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: all 0.3s ease;
}

.dashboard-img:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced Stats Section */
.dashboard-stats-section {
    margin-bottom: 3rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 6rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.2rem;
    opacity: 0.7;
    flex-shrink: 0;
    color: #3498db;
}

.stat-content {
    text-align: left;
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Appointments Management Section */
.appointments-management {
    background: white;
    border-radius: 1rem;
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #f1f3f4;
    display: none; /* Hidden by default - calendar view is default */
}

.appointments-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.appointments-description {
    font-size: 1.4rem;
    color: #64748b;
    max-width: 52rem;
    margin: 0 auto;
    line-height: 1.4;
    font-weight: 400;
}

/* Enhanced Dashboard Controls */
.dashboard-controls {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin: 0 2rem 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.control-title {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.search-filters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: end;
}

.search-group,
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.search-label,
.filter-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

/* Enhanced Admin Header */
.admin-nav-user {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.admin-user-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.welcome-text {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
}

.admin-user-info {
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
}

/* Enhanced Table Styling */
.appointments-table-container {
    margin: 0 2rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.appointments-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.appointments-table th {
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2rem 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.appointments-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

.appointments-table tbody tr:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: scale(1.002);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Enhanced Empty State */
.empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 2rem;
    border-radius: 1.2rem;
    padding: 6rem 3rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 8rem;
    margin-bottom: 2rem;
    opacity: 0.6;
}

/* Responsive Design for Admin Dashboard */
@media (max-width: 768px) {
    /* Admin Header Mobile Optimization */
    .admin-nav-container {
        padding: 0 1.5rem;
        min-height: 6rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .admin-header .nav-logo h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .admin-nav-user {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .admin-user-welcome {
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .welcome-text {
        font-size: 1.1rem;
    }
    
    .admin-user-info {
        font-size: 1.3rem;
    }
    
    /* Main Content Mobile Optimization */
    .admin-main {
        padding: 2rem 0;
    }
    
    .admin-container {
        padding: 0 1rem;
    }
    
/* Dashboard Stats Mobile */
    .dashboard-stats-section {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 1.2rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin-top: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
        padding: 1rem 0.6rem;
        min-height: 7rem;
        justify-content: center;
    }
    
    .stat-content {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.1rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }
    
    /* Appointments Management Mobile */
    .appointments-management {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        padding: 1.5rem 0;
    }
    
    .appointments-header {
        padding: 0 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .appointments-header .section-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .appointments-description {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    /* Dashboard Controls Mobile - Compact Version */
    .dashboard-controls {
        margin: 0 0 1rem 0;
        padding: 1rem 1rem;
        border-radius: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .controls-left {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .control-group {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .control-title {
        font-size: 1.6rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .controls-right {
        justify-content: stretch;
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Compact Search Filters Layout */
    .search-filters {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-group {
        width: 100%;
        gap: 0.5rem;
    }
    
    .filter-group {
        width: 100%;
        gap: 0.5rem;
    }
    
    /* Create a wrapper for the two filters to sit side by side */
    .mobile-filter-row {
        display: flex;
        gap: 1rem;
        width: 100%;
    }
    
    /* Target the last two filter groups (Status and Date) and make them flex */
    .search-filters .filter-group:nth-of-type(2),
    .search-filters .filter-group:nth-of-type(3) {
        flex: 1;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1.4rem;
    }
    
    .form-select {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1.4rem;
    }
    
    .search-label,
    .filter-label {
        font-size: 1.2rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
    }
    
    /* Refresh Button Compact */
    .btn-small {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
        white-space: nowrap;
    }
    
    /* Table Mobile Optimization */
    .appointments-table-container {
        margin: 0;
        border-radius: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .appointments-table {
        min-width: 90rem;
        font-size: 1.3rem;
    }
    
    .appointments-table th {
        padding: 1.5rem 1rem;
        font-size: 1.2rem;
        white-space: nowrap;
    }
    
    .appointments-table td {
        padding: 1.5rem 1rem;
        font-size: 1.3rem;
    }
    
    /* Status badges mobile */
    .status-badge {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Action buttons mobile */
    .table-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-table {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
        width: 100%;
    }
    
    /* Empty State Mobile */
    .empty-state {
        margin: 0;
        border-radius: 0;
        padding: 4rem 2rem;
    }
    
    .empty-state-icon {
        font-size: 6rem;
    }
    
    .empty-state h3 {
        font-size: 2rem;
    }
    
    .empty-state p {
        font-size: 1.5rem;
    }
    
    /* Pagination Mobile */
    .pagination-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 0;
        border-radius: 0;
    }
    
    .pagination-info {
        text-align: center;
        font-size: 1.3rem;
    }
    
    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-number {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.3rem;
    }
    
    /* Modal Mobile Optimization */
    .modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 2rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
        max-height: 65vh;
    }
    
    .modal-footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Status buttons mobile */
    .status-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .status-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 1.2rem;
    }
    
    /* Detail grid mobile */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        padding: 1.2rem;
    }
    
    /* Toast Mobile */
    .toast {
        right: 1rem;
        left: 1rem;
        top: 1rem;
        max-width: none;
        padding: 1.5rem;
    }
    
    .toast-content {
        font-size: 1.4rem;
    }
    
    /* Footer Mobile */
    .footer {
        margin-top: 4rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .admin-nav-container {
        min-height: 5.5rem;
        padding: 0 1rem;
    }
    
    .admin-header .nav-logo h1 {
        font-size: 1.8rem;
    }
    
    .admin-nav-user {
        gap: 0.8rem;
    }
    
    .btn-small {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .dashboard-stats {
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 0.8rem 0.5rem;
        min-height: 6.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .stat-icon {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .dashboard-controls {
        padding: 1rem 0.8rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls-left,
    .controls-right {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-title {
        font-size: 1.5rem;
    }
    
    .appointments-table {
        min-width: 80rem;
    }
    
    .calendar-main-container {
        flex-direction: column;
    }

    .calendar-actions {
        flex-direction: column;
        align-items: center;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .appointments-list .appointment-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   APPOINTMENT MANAGEMENT SECTION
   ========================================================================== */

.appointment-management-section {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 4rem;
    padding: 3rem;
}

.view-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* ==========================================================================
   CALENDAR VIEW STYLES
   ========================================================================== */

.calendar-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.calendar-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calendar-description {
    color: #7f8c8d;
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.calendar-nav-btn {
    min-width: 10rem;
}

.current-month-year h3 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin: 0;
    min-width: 20rem;
    text-align: center;
}

.calendar-view-toggle {
    display: flex;
    gap: 1rem;
}

.calendar-main-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.calendar-container {
    flex: 0 0 45%;
    margin-bottom: 0;
}

.calendar-grid {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.8rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    padding: 0.8rem 0.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    background: white;
    border-radius: 0.4rem;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #2c3e50;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.4rem;
}

.calendar-day:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.calendar-day.today {
    background: #3498db;
    color: white;
    font-weight: 700;
}

.calendar-day.today:hover {
    background: #2980b9;
}

.calendar-day.selected {
    border: 2px solid #3498db;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    opacity: 0.3;
}

.calendar-day.empty:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.calendar-day.has-appointments {
    background: #e8f5e8;
    border: 2px solid #27ae60;
}

.calendar-day.has-appointments:hover {
    background: #d5eddb;
}

.todays-appointments-panel {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2.5rem;
    border: 1px solid #e9ecef;
    display: block; /* Visible by default as part of calendar view */
    flex: 1;
    min-height: 40rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.appointment-count {
    background: #3498db;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.8rem;
    border-left: 4px solid #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.appointment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    border-left-color: #2980b9;
}

.no-appointments {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.no-appointments-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* View Toggle Button Styles */
.toggle-buttons {
  display: flex;
  background: #f8f9fa;
  border-radius: 0.8rem;
  padding: 0.4rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 10rem;
  user-select: none;
}

.toggle-btn:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.08);
  transform: translateY(-1px);
}

.toggle-btn.active {
  color: #3498db;
  background: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
  transform: translateY(-1px);
}

.toggle-btn.active:hover {
  color: #2980b9;
  background: white;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .calendar-nav {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex !important;
    }
    
    .calendar-nav-btn {
        min-width: 5rem;
        padding: 0.6rem 0.8rem;
        font-size: 1.2rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .current-month-year {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .current-month-year h3 {
        font-size: 1.6rem;
        min-width: auto;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .calendar-view-toggle {
        justify-content: center;
    }
    
    /* Stack calendar and appointments panel vertically on mobile */
    .calendar-main-container {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
        width: 100%;
    }
    
    .calendar-container {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
    
    .calendar-grid {
        width: 100%;
        margin: 0 auto;
    }
    
    .todays-appointments-panel {
        flex: 1;
        min-height: auto;
        width: 100%;
    }
    
    .calendar-day {
        padding: 1rem 0.5rem;
        min-height: 5rem;
        font-size: 1.4rem;
    }
    
    .calendar-day-header {
        padding: 0.8rem 0.5rem;
        font-size: 1.2rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .appointment-item {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 4rem;
        font-size: 1.3rem;
        padding: 0.8rem 0.3rem;
    }
    
    .calendar-day-header {
        font-size: 1.1rem;
        padding: 0.6rem 0.3rem;
    }
    
    .current-month-year h3 {
        font-size: 1.8rem;
    }
    
    .todays-appointments-panel {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   ADVANCED ANIMATIONS AND VISUAL EFFECTS
   ========================================================================== */

/* Clean hero section without canvas */
.hero {
    position: relative;
}

.hero-content,
.hero-image {
    position: relative;
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Apply animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

/* Pet icons simplified */
.pet-icon {
    display: inline-block;
    font-size: 4rem;
    margin: 0 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pet-icon:hover {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.6));
}

/* Enhanced service cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card.animate {
    animation: slideInFromBottom 0.6s ease-out forwards;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Service icons simplified */
.service-icon {
    color: #4CAF50;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* Enhanced buttons with glassmorphism */
.btn {
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Sparkle effect */
.sparkle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffd700, #ff6b6b);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleAnimation 1s ease-out forwards;
    z-index: 10000;
}

@keyframes sparkleAnimation {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(180deg) translate(50px, -50px);
        opacity: 0;
    }
}

/* Enhanced contact items */
.contact-item {
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.contact-item.animate {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glowing text effect */
.hero-title {
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

/* Loading spinner enhancement */
.spinner {
    background: conic-gradient(from 0deg, #3498db, #e74c3c, #f39c12, #27ae60, #3498db);
    border-radius: 50%;
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: white;
    border-radius: 50%;
}

/* Smooth transitions for form elements */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Gradient text animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Enhanced footer with subtle animation */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid;
    }

    .form-input,
    .form-select,
    .form-textarea {
        border-width: 3px;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: white;
        color: black;
    }
}

/* About page placeholder */
.about-section {
    padding: 5rem 0;
    background-color: white;
}

.about-content {
    max-width: 120rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.about-content h1 {
    font-size: 3.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-content p {
    font-size: 1.7rem;
    color: #7f8c8d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 100rem;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.team-member {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-1rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-member h3 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-member .role {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.team-member p {
    color: #7f8c8d;
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Doctor profile card styles */
.doctor-profile-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 60rem;
    margin-top: 3rem;
}

.doctor-card-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.doctor-avatar {
    flex-shrink: 0;
}

.doctor-avatar img {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    border: 4px solid #3498db;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.doctor-basic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.doctor-title {
    font-size: 1.8rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.credential {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.doctor-description {
    padding: 3rem;
    color: #5a6c7d;
    font-size: 1.7rem;
    line-height: 1.8;
    text-align: left;
    border-top: 1px solid #e9ecef;
}

.doctor-profile-card:hover {
    transform: translateY(-0.8rem);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.doctor-profile-card:hover .doctor-avatar img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doctor-card-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem;
    }
    
    .doctor-avatar img {
        width: 12rem;
        height: 12rem;
    }
    
    .doctor-name {
        font-size: 2.4rem;
    }
    
    .doctor-title {
        font-size: 1.6rem;
    }
    
    .doctor-description {
        text-align: center;
        padding: 2.5rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .doctor-profile-card {
        max-width: 100%;
        margin: 2rem 0;
    }
    
    .doctor-card-header {
        padding: 2rem;
    }
    
    .doctor-avatar img {
        width: 10rem;
        height: 10rem;
    }
    
    .doctor-name {
        font-size: 2.2rem;
    }
    
    .doctor-title {
        font-size: 1.4rem;
    }
    
    .doctor-description {
        padding: 2rem;
        font-size: 1.5rem;
    }
    
    .credential {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
}

/* ==========================================================================
   DOWNLOAD BUTTONS MOBILE OPTIMIZATION
   ========================================================================== */

.control-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Download buttons mobile optimization */
@media (max-width: 768px) {
    .control-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }
    
    .control-buttons .btn-small {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
        min-width: auto;
        width: 100%;
        max-width: 20rem;
        margin: 0 auto;
        white-space: nowrap;
    }
    
    /* Specific download button styles for mobile */
    #download-csv,
    #download-pdf {
        padding: 0.5rem 0.8rem !important;
        font-size: 1.1rem !important;
        min-height: 3.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        border-radius: 0.6rem;
        max-width: 20rem;
        width: 100%;
    }
    
    /* Compact text for download buttons */
    #download-csv {
        font-size: 1.1rem !important;
    }
    
    #download-pdf {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .control-buttons .btn-small {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
        max-width: 18rem;
    }
    
    #download-csv,
    #download-pdf {
        padding: 0.4rem 0.6rem !important;
        font-size: 1rem !important;
        min-height: 2.8rem;
        gap: 0.2rem;
        max-width: 18rem;
    }
    
    /* Use shorter text on very small screens */
    #download-csv .btn-text {
        display: none;
    }
    
    #download-pdf .btn-text {
        display: none;
    }
    
    #download-csv::after {
        content: 'CSV';
    }
    
    #download-pdf::after {
        content: 'PDF';
    }
}
