/* Health & Wellness Page - Advanced Features Styles */

/* Reuse stats dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(244, 67, 54, 0.4);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Chart Container */
.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

/* PHC Card */
.facility-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.phc-card h3 {
    font-size: 2rem;
    color: #f44336;
    margin-bottom: 20px;
}

.facility-info p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.doctors-list {
    margin: 20px 0;
}

.doctor-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    margin: 10px 0;
}

.doctor-icon {
    font-size: 2.5rem;
}

.doctor-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.doctor-specialty {
    color: #666;
    font-size: 0.95rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.service-badge {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    border: 2px solid #2196f3;
}

/* Anganwadi Section */
.anganwadi-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.anganwadi-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.anganwadi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.anganwadi-card {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #ff9800;
}

.anganwadi-card h4 {
    color: #e65100;
    margin-bottom: 15px;
}

.anganwadi-card p {
    margin: 8px 0;
    color: #333;
}

/* Hospitals Section */
.hospitals-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.hospitals-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.hospitals-list {
    margin-top: 25px;
}

.hospital-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 5px solid #2196f3;
}

.hospital-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.hospital-details {
    display: flex;
    gap: 30px;
    color: #666;
}

/* Health Schemes */
.schemes-section {
    margin: 30px 0;
}

.schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.scheme-card {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #4caf50;
    transition: transform 0.3s;
}

.scheme-card:hover {
    transform: translateY(-5px);
}

.scheme-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.scheme-card h4 {
    color: #2e7d32;
    margin-bottom: 5px;
}

.scheme-name-en {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Immunization Schedule */
.immunization-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.immunization-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.immunization-table {
    margin-top: 25px;
    overflow-x: auto;
}

.immunization-table table {
    width: 100%;
    border-collapse: collapse;
}

.immunization-table th {
    background: #2196f3;
    color: white;
    padding: 15px;
    text-align: left;
}

.immunization-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.immunization-table tr:hover {
    background: #f5f5f5;
}

/* Health Calendar */
.health-calendar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.health-calendar h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.calendar-events {
    margin-top: 25px;
}

.calendar-event {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    transition: transform 0.3s;
}

.calendar-event:hover {
    transform: translateX(10px);
}

.event-date {
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.event-name {
    font-size: 1.1rem;
    color: #333;
}

/* Emergency Services */
.emergency-ambulance {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
    margin: 30px 0;
    border: 3px solid #f44336;
}

.ambulance-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.emergency-ambulance h2 {
    color: #c62828;
    margin-bottom: 20px;
}

.emergency-number {
    font-size: 4rem;
    font-weight: bold;
    color: #f44336;
    margin: 20px 0;
}

.btn-emergency {
    background: #f44336;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s, transform 0.3s;
}

.btn-emergency:hover {
    background: #c62828;
    transform: scale(1.05);
}

/* Emergency Contacts */
.emergency-contacts {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.emergency-contacts h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.contact-card {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #2196f3;
}

.contact-service {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.contact-number {
    font-size: 1.8rem;
    font-weight: bold;
}

.contact-number a {
    color: #1976d2;
    text-decoration: none;
}

/* Blood Donor Directory */
.blood-donor-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.blood-donor-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.search-box {
    margin: 25px 0;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #f44336;
}

.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.donor-card {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #f44336;
    transition: transform 0.3s;
}

.donor-card:hover {
    transform: scale(1.05);
}

.blood-group-badge {
    background: #f44336;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.donor-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.donor-phone {
    color: #666;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 40px 0 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .schemes-grid,
    .anganwadi-grid,
    .contacts-grid,
    .donors-grid {
        grid-template-columns: 1fr;
    }

    .hospital-details {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-dashboard {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .emergency-number {
        font-size: 3rem;
    }
}

/* Health Tools Grid */
.health-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Health Tools - BMI & Symptom Checker */
.bmi-section,
.symptom-section {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s;
}

.bmi-section:hover,
.symptom-section:hover {
    transform: translateY(-5px);
}

.bmi-section {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
}

.symptom-section {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
}

.bmi-section h3,
.symptom-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.btn-gov {
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.btn-gov:hover {
    background: #43a047;
    transform: translateY(-2px);
}

.bmi-result,
.symptom-result {
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}