/* Datla Hospitals Design System - Medical Professional Theme */

:root {
    /* Medical Blue Theme - Professional & Trustworthy */
    --background: 0 0% 100%;
    --foreground: 213 31% 10%;

    --card: 0 0% 100%;
    --card-foreground: 213 31% 10%;

    --popover: 0 0% 100%;
    --popover-foreground: 213 31% 10%;

    /* Primary Medical Blue */
    --primary: 210 100% 45%;
    --primary-foreground: 0 0% 100%;
    --primary-light: 210 100% 85%;
    --primary-dark: 210 100% 35%;

    /* Secondary Medical Green */
    --secondary: 158 65% 50%;
    --secondary-foreground: 0 0% 100%;
    --secondary-light: 158 65% 85%;
    --secondary-dark: 158 65% 40%;

    /* Muted Medical Gray */
    --muted: 210 20% 96%;
    --muted-foreground: 213 15% 45%;

    /* Accent Medical Teal */
    --accent: 180 50% 50%;
    --accent-foreground: 0 0% 100%;
    --accent-light: 180 50% 85%;

    /* Medical Emergency Red */
    --destructive: 0 85% 55%;
    --destructive-foreground: 0 0% 100%;
    --emergency: 0 100% 50%;
    --emergency-foreground: 0 0% 100%;

    /* Medical Success Green */
    --success: 120 60% 45%;
    --success-foreground: 0 0% 100%;

    /* Medical Warning Orange */
    --warning: 35 90% 55%;
    --warning-foreground: 0 0% 100%;

    /* Border and Input */
    --border: 210 20% 85%;
    --input: 210 20% 90%;
    --ring: 210 100% 45%;

    --radius: 0.75rem;

    /* Medical Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    --gradient-secondary: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--secondary-dark)));
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    --gradient-card: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted)));

    /* Medical Shadows */
    --shadow-medical: 0 4px 20px -2px hsl(var(--primary) / 0.1);
    --shadow-card: 0 2px 10px -1px hsl(var(--foreground) / 0.1);
    --shadow-hover: 0 8px 30px -4px hsl(var(--primary) / 0.2);

    /* Animation Variables */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Tailwind Configuration via CDN - Colors defined in custom properties above */

/* Professional Medical Components */
.medical-gradient {
    background: var(--gradient-hero);
}

.medical-logo {
    border: 1px solid black;
}

.medical-log {
    border: 1px solid rgb(255, 255, 255);
}

.card-shadow {
    box-shadow: var(--shadow-card);
}

.medical-shadow {
    box-shadow: var(--shadow-medical);
}

.hover-shadow {
    transition: var(--transition-smooth);
}



/* Base Styles */
* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Medical Button Variants */
.btn-medical {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-medical:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.btn-medical:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-card);
    animation: pulse 3s ease-in-out infinite;
    height: 3rem;          /* Adjust height as needed */
    line-height: 3rem;     /* Centers text vertically */
    padding: 0 1.5rem;     /* Horizontal padding */
    border-radius: 0.75rem; /* Rounded corners */
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.9);
    box-shadow: var(--shadow-hover);
}

.btn-emergency {
    background-color: hsl(var(--emergency));
    color: hsl(var(--emergency-foreground));
    box-shadow: var(--shadow-card);
    animation: pulse 3s ease-in-out infinite;
    height: 3rem;          /* Adjust height as needed */
    line-height: 3rem;     /* Centers text vertically */
    padding: 0 1.5rem;     /* Horizontal padding */
    border-radius: 0.75rem; /* Rounded corners */
}

.btn-emergency:hover {
    background-color: hsl(var(--emergency) / 0.9);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border: 1px solid hsl(var(--primary));
    color: hsl(var(--primary));
    background-color: transparent;
}

.btn-outline:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Medical Cards */
.medical-card {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}


.Appointment-card {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 1.5rem;
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    perspective: 1000px; /* gives depth */
}



.service-card {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 1.5rem;
   box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.doctor-card {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-smooth);
}

.doctor-card:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
}

/* Medical Forms */
.medical-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.medical-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.medical-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.medical-input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Navigation */
.nav-link {
    color: hsl(var(--foreground));
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-link.active {
    color: hsl(var(--primary));
    font-weight: 600;
}

/* Medical Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* FAQ Animations */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq-answer.open {
    max-height: 200px;
    opacity: 1;
}

/* Carousel Styles */
.carousel-container {
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .medical-card {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .btn-medical {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Additional utility classes for colors */
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-secondary-light { color: hsl(var(--secondary-light)); }
.text-secondary-dark { color: hsl(var(--secondary-dark)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-accent { color: hsl(var(--accent)); }
.text-emergency { color: hsl(var(--emergency)); }
.text-success { color: hsl(var(--success)); }
.text-warning { color: hsl(var(--warning)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-foreground { color: hsl(var(--foreground)); }

.bg-primary { background-color: #007690; }
.bg-primary\/90 { background-color: hsl(var(--primary) / 0.9); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-secondary\/10 { background-color: hsl(var(--secondary) / 0.1); }
.bg-secondary\/5 { background-color: hsl(var(--secondary) / 0.05); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-white { background-color: white; }
.bg-white\/95 { background-color: rgb(255 255 255 / 0.95); }
.bg-white\/90 { background-color: rgb(255 255 255 / 0.9); }

.border-primary { border-color: hsl(var(--primary)); }
.border-destructive { border-color: hsl(var(--destructive)); }
.border-border { border-color: hsl(var(--border)); }

.shadow-medical { box-shadow: var(--shadow-medical); }
.shadow-hover { box-shadow: var(--shadow-hover); }