@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
header {
    background: #2c3e50;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

nav .nav-links a.active {
    background: #3498db !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
}

/* Additional specific selectors to ensure active state works */
.nav-links a.active,
.navbar .nav-links a.active,
header nav .nav-links a.active {
    background: #3498db !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
}

/* Modern Toggle Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 500;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

    nav .nav-links a.active {
        background: #3498db !important;
        border-color: #3498db !important;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
        color: white !important;
        font-weight: 600 !important;
    }
    
    /* Additional mobile-specific active selectors */
    .nav-links a.active,
    .navbar .nav-links a.active,
    header nav .nav-links a.active {
        background: #3498db !important;
        border-color: #3498db !important;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
        color: white !important;
        font-weight: 600 !important;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

.hero {
    text-align: center;
    background: url('hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    margin: 1rem 0.5rem;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-primary {
    background: #28a745;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

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

.features h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature {
    flex: 1 1 30%;
    margin: 1rem;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.feature:hover {
    transform: translateY(-10px);
}

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

.dashboard h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    transition: transform 0.3s;
}

.card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

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

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

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

.directory h1 {
    margin-bottom: 1.5rem;
}

.filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter select,
.filter input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.doctor-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.doctor-card {
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 200px;
    transition: transform 0.3s;
}

.doctor-card img {
    max-width: 50%;  /* This will make the image responsive */
    max-height: 100px;  /* Restricts the height to a maximum of 200px */
    width: auto;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.doctor-card h3 {
    margin-bottom: 0.5rem;
}

.doctor-card:hover {
    transform: translateY(-10px);
}

.hospital-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hospital-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hospital-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.hospital-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.hospital-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hospital-card:hover .hospital-image {
    transform: scale(1.05);
}

.hospital-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    pointer-events: none;
}

.hospital-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hospital-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.hospital-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hospital-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.95rem;
}

.hospital-detail i {
    color: #3498db;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.hospital-services {
    margin-top: auto;
}

.hospital-services h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
    transition: all 0.2s ease;
}

.service-tag:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.hospital-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.get-directions {
    background: #3498db;
    color: white;
}

.get-directions:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.call-now {
    background: #f1f5f9;
    color: #2c3e50;
}

.call-now:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Chat Section Styles */
.chat-section {
    padding: 2rem;
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
}

.chat-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: calc(100vh - 110px);
}

.chat-sidebar {
    background: #f8f9fa;
    padding: 1rem;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}

.doctor-profile {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.doctor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #3498db;
}

.doctor-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.doctor-status.online {
    background: #28a745;
    color: white;
}

.doctor-specialty {
    color: #6c757d;
    margin: 0.5rem 0;
}

.consultation-info {
    text-align: left;
    margin-top: 1rem;
}

.consultation-info p {
    margin: 0.5rem 0;
    color: #6c757d;
}

.consultation-info i {
    width: 20px;
    color: #3498db;
}

.chat-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-btn i {
    font-size: 1.1rem;
}

.action-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    margin: 0;
    color: #2c3e50;
}

.control-btn {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #c82333;
}

.chat-box {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
    max-height: calc(100vh - 250px);
    background: #fff;
}

.chat-message {
    max-width: 80%;
    padding: 0.75rem;
    border-radius: 10px;
    margin: 0.5rem 0;
    display: block;
}

.chat-message.system-message {
    background: #e9ecef;
    color: #6c757d;
    text-align: center;
    margin: 1rem auto;
    max-width: 90%;
}

.chat-message.user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.chat-message.doctor-message {
    background: #f8f9fa;
    color: #2c3e50;
    margin-right: auto;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.message-header .timestamp {
    color: #6c757d;
}

.chat-message p {
    margin: 0;
    line-height: 1.4;
}

.user-message p {
    color: white;
}

.doctor-message p {
    color: #2c3e50;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #fff;
}

.input-actions {
    display: flex;
    gap: 0.5rem;
}

.input-actions .action-btn {
    padding: 0.5rem;
    background: none;
    box-shadow: none;
}

.chat-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 200px;
}

.send-btn {
    padding: 0.75rem 1.5rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.send-btn:hover {
    background: #218838;
}

.chat-info {
    background: #f8f9fa;
    padding: 1rem;
    border-left: 1px solid #dee2e6;
    overflow-y: auto;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.patient-details p {
    margin: 0.5rem 0;
    color: #6c757d;
}

.vitals-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vital-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vital-item i {
    font-size: 1.2rem;
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .chat-container {
        grid-template-columns: 250px 1fr 250px;
    }
}

@media (max-width: 992px) {
    .chat-container {
        grid-template-columns: 250px 1fr;
    }
    .chat-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
    }
    .chat-sidebar {
        display: none;
    }
    .chat-section {
        padding: 1rem;
    }
}

.profile-section {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
}

.profile-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: auto;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.section-header i {
    font-size: 1.4em;
    color: #4a90e2;
    background: #f0f7ff;
    padding: 10px;
    border-radius: 10px;
}

.section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: #f0f7ff;
}

.info-item label {
    font-size: 0.8em;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.info-item span {
    color: #1e293b;
    font-size: 1em;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.btn-edit {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.btn-edit:hover {
    background-color: #357abd;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
}

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

.input-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

textarea.input-field {
    min-height: 100px;
    resize: vertical;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-section {
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.auth-container:hover {
    transform: translateY(-5px);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container i {
    font-size: 3rem;
    background: linear-gradient(135deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.5;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.pin-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pin-input-container:focus-within {
    border-color: #4158D0;
    box-shadow: 0 0 0 4px rgba(65, 88, 208, 0.1);
}

.pin-input-container input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    letter-spacing: 8px;
    text-align: center;
    border: none;
    background: transparent;
    color: #2c3e50;
    font-weight: 600;
}

.pin-input-container input:focus {
    outline: none;
}

.pin-input-container input::placeholder {
    letter-spacing: normal;
    color: #adb5bd;
}

.toggle-pin-visibility {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-pin-visibility:hover {
    color: #4158D0;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(65, 88, 208, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 88, 208, 0.3);
}

.btn-secondary {
    background: white;
    color: #4158D0;
    border: 2px solid #4158D0;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: #4158D0;
    color: white;
    transform: translateY(-2px);
}

.error-message {
    color: #dc3545;
    background: #fff5f5;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    color: #6c757d;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 2rem;
        margin: 1rem;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .pin-input-container input {
        font-size: 1.1rem;
        letter-spacing: 6px;
    }
}

.medical-records {
    margin: 2rem auto;
    padding: 2rem;
    max-width: 1000px;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.patient-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.patient-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.records-list {
    margin-top: 2rem;
}

.table-container {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

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

table thead {
    background-color: #007bff;
    color: white;
}

table th, table td {
    text-align: left;
    padding: 0.8rem;
    border: 1px solid #ddd;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.crowdfunding {
    padding: 2rem;
    background-color: #f9f9f9;
}

.campaign-form {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.campaign-form h2 {
    margin-bottom: 1rem;
}

.campaign-form input,
.campaign-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.campaign-form button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
}

.ongoing-campaigns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.campaign-card {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.campaign-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.campaign-card h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.campaign-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.campaign-card .btn-secondary {
    background-color: #007bff;
    color: white;
    padding: 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    display: block;
    text-align: center;
    margin-top: 1rem;
}

/* Live Monitor Styles */
.monitor-section {
    padding: 2rem;
    background: #f8f9fa;
}

.patient-info {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.patient-info h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.vitals-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.vital-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    min-width: 150px;
    border: 1px solid #e9ecef;
}

.vital-box h3 {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.vital-value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.vital-value .unit {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 0.25rem;
}

.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 400px;
    position: relative;
}

/* Make the chart responsive */
@media (max-width: 768px) {
    .vitals-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .vital-box {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }

    .chart-container {
        height: 300px;
        width: 100;
    }
    
    /* Ensure table text is visible on mobile */
    table thead {
        background-color: #007bff !important;
        color: white !important;
    }
    
    table th {
        color: white !important;
        background-color: #007bff !important;
    }
    
    table td {
        color: #333 !important;
        background-color: transparent !important;
    }
    
    table tr:nth-child(even) td {
        background-color: #f9f9f9 !important;
        color: #333 !important;
    }
    
    table tr:nth-child(odd) td {
        background-color: white !important;
        color: #333 !important;
    }
}

@media (max-width: 480px) {
    /* Additional mobile fixes for very small screens */
    table thead {
        background-color: #007bff !important;
        color: white !important;
    }
    
    table th {
        color: white !important;
        background-color: #007bff !important;
        font-size: 12px;
        padding: 6px 4px;
    }
    
    table td {
        color: #333 !important;
        font-size: 12px;
        padding: 6px 4px;
    }
}

.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-field {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    min-width: 120px;
}

.search-input:focus,
.search-field:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

footer p {
    margin: 0;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    width: 100%;
}




