:root {
    --primary-blue: #2c5aa0;
    --light-blue: #e8f2ff;
    --dark-blue: #1a3d73;
    --light-yellow: #f2ebd1;
}

body {
    font-family: 'Roboto', sans-serif;
}

.form-label {
    font-weight: 600;}

.fz_10 {font-size: 10px;}
.fz_12 {font-size: 12px;}
.fz_14 {font-size: 14px;}
.fz_16 {font-size: 16px;}
.fz_18 {font-size: 18px;}
.fz_20 {font-size: 20px;}
.fz_22 {font-size: 22px;}
.fz_24 {font-size: 24px;}
.fz_26 {font-size: 26px;}
.fz_28 {font-size: 28px;}
.fz_30 {font-size: 30px;}

.h_100 {height: 100px;}
.h_150 {height: 150px;}
.h_200 {height: 200px;}
.h_250 {height: 250px;}
.h_300 {height: 300px;}
.h_350 {height: 350px;}
.h_100_p {height: 100%;}

.w_100 {width: 100px;}
.w_150 {width: 150px;}
.w_200 {width: 200px;}
.w_250 {width: 250px;}
.w_300 {width: 300px;}
.w_350 {width: 350px;}
.w_100_p {width: 100%;}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
}

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

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

.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, #ffffff 100%);
    padding: 50px 0;
}

.search-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
    padding: 30px;
}

.search-card h2 {
    font-weight: 700;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.section-title {
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.doctor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

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

.doctor-card h5 a {
    color: #000!important;
    font-weight: 600;
}

.doctor-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.department-card {
    background: var(--light-blue);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.department-card:hover {
    transform: translateY(-5px);
    background: var(--primary-blue);
    color: white;
}

.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 50px 0 20px;
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.copyright {
    background-color: #0f2a52;
    color: #cccccc;
    padding: 15px 0;
    text-align: center;
}

.main-nav {
    background-color: var(--primary-blue);
}

.main-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 15px 15px !important; /* Increased horizontal padding */
    margin: 0 5px; /* Added margin between items */
}

.main-nav .nav-link:hover {
    color: var(--light-blue) !important;
}

.main-nav .nav-item {
    margin: 0 8px; /* Additional margin for nav items */
}

/* Highlight ONLY the last menu item - Make Appointment */
.main-nav .nav-item:last-child .nav-link {
    background-color: #ff6b35 !important;
    color: white !important;
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 20px !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.main-nav .nav-item:last-child .nav-link:hover {
    background-color: #e55a2b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Page Banner Styles */
.page-banner {
    padding: 40px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Auth Form Styles */
.auth-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--primary-blue);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Department Info Card Styles */
.department-info-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 15px;
    color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s ease;
}

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

.info-header {
    text-align: center;
    padding: 30px 20px 20px;
    background: rgba(255, 255, 255, 0.1);
}

.info-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
}

.info-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.info-content {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
    color: #fff;
    min-width: 20px;
}

.info-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.info-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.info-footer {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.info-footer .btn {
    background: #fff;
    color: #007bff;
    border: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-footer .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

.gallery-link {
    display: block;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-header {
        padding: 20px 15px 15px;
    }
    
    .info-header i {
        font-size: 2.5rem;
    }
    
    .info-content {
        padding: 15px;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}


/* Contact Form Styles */
.contact-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Contact Info Card */
.contact-info-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 15px;
    color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.contact-info-card .info-header {
    text-align: center;
    padding: 30px 20px 20px;
    background: rgba(255, 255, 255, 0.1);
}

.contact-info-card .info-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
}

.contact-info-card .info-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.contact-info-content {
    padding: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
    color: #fff;
    min-width: 20px;
}

.contact-info-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Hours Card */
.hours-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hours-header {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 20px;
}

.hours-header i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hours-header h4 {
    margin: 0;
    font-weight: 600;
}

.hours-content {
    padding: 20px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item.emergency {
    background: #fff5f5;
    margin: 10px -20px -20px;
    padding: 15px 20px;
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: #333;
}

.hours-item .time {
    color: var(--primary-blue);
    font-weight: 500;
}

.hours-item.emergency .day,
.hours-item.emergency .time {
    color: #dc3545;
    font-weight: 600;
}

/* Map Container */
.map-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

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

/* Quick Action Cards */
.quick-action-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.quick-action-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.quick-action-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-action-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-card {
        padding: 25px;
    }
    
    .contact-info-card .info-header {
        padding: 20px 15px 15px;
    }
    
    .contact-info-card .info-header i {
        font-size: 2.5rem;
    }
    
    .contact-info-content {
        padding: 15px;
    }
    
    .contact-info-item {
        padding: 12px;
    }
    
    .quick-action-card {
        padding: 30px 20px;
    }
    
    .quick-action-card i {
        font-size: 2.5rem;
    }
}

/* Dashboard Styles */
.dashboard-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}

.patient-info-card {
    background: linear-gradient(135deg, #2c5aa0 0%, #638ac5 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.patient-avatar {
    font-size: 60px;
    margin-bottom: 15px;
}

.patient-info-card h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.dashboard-nav {
    padding: 0;
}

.dashboard-nav .nav-link {
    padding: 15px 20px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
    background: #f8f9fa;
    color: #007bff;
    border-left: 3px solid #007bff;
}

.dashboard-nav .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.dashboard-welcome h2 {
    color: #333;
    margin-bottom: 10px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 40px;
    color: #007bff;
    margin-right: 20px;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.stat-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.dashboard-card .card-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-card .card-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.dashboard-card .card-header i {
    margin-right: 10px;
    color: #007bff;
}

.dashboard-card .card-body {
    padding: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 20px;
    color: #007bff;
    margin-right: 15px;
    margin-top: 5px;
}

.activity-content h5 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.activity-content p {
    margin-bottom: 5px;
    color: #666;
}

.next-appointment {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.appointment-date {
    background: #007bff;
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-right: 20px;
    min-width: 80px;
}

.appointment-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.appointment-date .month {
    display: block;
    font-size: 14px;
}

.appointment-details h5 {
    margin-bottom: 5px;
    color: #333;
}

.appointment-details p {
    margin-bottom: 3px;
    color: #666;
    font-size: 14px;
}

.appointment-details i {
    margin-right: 5px;
    color: #007bff;
}

.profile-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-summary-item:last-child {
    border-bottom: none;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.security-item:last-child {
    border-bottom: none;
}

.security-info strong {
    display: block;
    color: #333;
}

.security-info p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .next-appointment {
        flex-direction: column;
        text-align: center;
    }
    
    .appointment-date {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .security-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .security-item .btn {
        margin-top: 10px;
    }
}

/* Mobile Navigation Styles */
.main-nav .navbar-toggler {
    border: none;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.main-nav .navbar-toggler:focus {
    box-shadow: none;
}

.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive adjustments for main navigation */
@media (max-width: 991.98px) {
    .main-nav .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }
    
    .main-nav .nav-item {
        margin: 5px 0;
    }
    
    .main-nav .nav-link {
        padding: 10px 20px !important;
        margin: 5px 0;
        border-radius: 5px;
    }
    
    /* Adjust highlighted appointment button for mobile */
    .main-nav .nav-item:last-child .nav-link {
        margin: 10px auto;
        display: inline-block;
        max-width: 200px;
    }
}

.featured-doctor {
    background: var(--light-yellow)!important;
    color: white;
}
.profile-header h2 {
    font-weight: 600;
}

/* Enhanced Prescription Styles */
.prescription-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px 0;
    border: 2px solid #e3f2fd;
    position: relative;
}

.prescription-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 15px 15px 0 0;
}

/* Enhanced Header */
.prescription-header {
    margin-bottom: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.logo-circle i {
    color: white;
    font-size: 24px;
}

.clinic-details h3.clinic-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
    letter-spacing: -0.5px;
}

.clinic-tagline {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.contact-info {
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-item i {
    width: 20px;
    color: #007bff;
    margin-right: 10px;
}

.doctor-info {
    text-align: right;
}

.doctor-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.doctor-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.doctor-credentials {
    margin: 0 0 5px 0;
    color: #007bff;
    font-weight: 600;
    font-size: 16px;
}

.doctor-specialty {
    margin: 0 0 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.license-info {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
}

/* Enhanced Divider */
.prescription-divider {
    height: 2px;
    background: linear-gradient(90deg, #007bff, transparent);
    border: none;
    margin: 25px 0;
}

/* Enhanced Patient Info */
.patient-info-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.patient-info-header h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.patient-info-header i {
    margin-right: 10px;
    color: #007bff;
}

.info-item {
    margin-bottom: 10px;
}

.info-item label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-item span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Enhanced Content Sections */
.prescription-content {
    margin: 30px 0;
}

.section-header {
    margin-bottom: 15px;
}

.section-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.section-header i {
    margin-right: 8px;
    color: #007bff;
}

.diagnosis-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #28a745;
}

.diagnosis-code {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.diagnosis-name {
    margin: 5px 0 0 0;
    color: #333;
    font-weight: 500;
}

.clinical-notes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #17a2b8;
}

.clinical-notes p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.problems-section h5 {
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.problems-section p {
    color: #666;
    margin-bottom: 15px;
}

/* Enhanced Rx Section */
.rx-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #007bff;
}

.rx-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.rx-symbol {
    font-size: 48px;
    color: #007bff;
    margin-right: 15px;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
}

.rx-label {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.rx-title {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Times New Roman', serif;
}

.medications-list {
    margin-bottom: 25px;
}

.medication-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.medication-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.medication-item:last-child {
    border-bottom: none;
}

.medication-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.med-number {
    background: #007bff;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.med-name {
    color: #333;
    font-size: 16px;
    margin-right: 10px;
}

.med-strength {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.medication-details {
    margin-left: 35px;
}

.dosage-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.medication-item strong {
    color: #333;
    font-size: 16px;
}

.dosage {
    background: #17a2b8;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.duration {
    background: #ffc107;
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.med-instructions {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

/* Advice Section */
.advice-section h5 {
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.advice-section p {
    color: #666;
}

.advice-list {
    margin: 0;
    padding-left: 20px;
}

.advice-list li {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

/* Follow-up Section */
.followup-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.followup-info {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #28a745;
}

.followup-info p {
    margin: 0 0 10px 0;
    color: #333;
}

.followup-info p:last-child {
    margin-bottom: 0;
}

.warnings {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #ffc107;
}

.warning-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #856404;
}

.warning-item:last-child {
    margin-bottom: 0;
}

.warning-item i {
    margin-right: 8px;
    color: #dc3545;
}

.pharmacy-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #6f42c1;
}

.pharmacy-info h6 {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.pharmacy-info i {
    margin-right: 8px;
    color: #6f42c1;
}

.doctor-signature {
    text-align: center;
}

.doctor-signature h6 {
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.doctor-signature p {
    margin: 5px 0;
    color: #666;
}

.signature-area {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.signature-area h6 {
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
}

.signature-line {
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
}

.signature-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 20px;
    color: #333;
}

.signature-credentials,
.signature-date {
    margin: 5px 0;
    color: #6c757d;
    font-size: 14px;
}

/* Enhanced Action Buttons */
.prescription-actions {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #e9ecef;
    margin-top: 20px;
}

.prescription-actions .btn {
    margin: 0 8px 10px 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.prescription-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Enhanced Print Styles */
@media print {
    /* Hide only specific unwanted elements */
    .prescription-actions,
    .sidebar,
    .patient-sidebar,
    .navbar,
    .navbar-light,
    .main-nav,
    .profile-header,
    .footer,
    .copyright,
    header nav,
    .btn,
    button {
        display: none !important;
    }
    
    /* Basic page setup */
    body {
        font-family: 'Times New Roman', serif !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Container resets */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .col-lg-9 {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Section adjustments */
    section.py-5 {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Simple prescription styling */
    .simple-prescription {
        border: 2px solid #000 !important;
        padding: 20px !important;
        margin: 0 !important;
        background: white !important;
        page-break-inside: avoid !important;
    }
    
    /* Typography */
    .simple-prescription h1 {
        font-size: 24px !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    
    .simple-prescription h3 {
        font-size: 16px !important;
        margin: 10px 0 5px 0 !important;
    }
    
    .simple-prescription h4 {
        font-size: 14px !important;
        margin: 15px 0 8px 0 !important;
        font-weight: bold !important;
    }
    
    .simple-prescription p {
        font-size: 11px !important;
        margin: 3px 0 !important;
    }
    
    /* Tables */
    .info-table,
    .medicine-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 10px 0 !important;
    }
    
    .medicine-table th,
    .medicine-table td {
        border: 1px solid #000 !important;
        padding: 4px !important;
        font-size: 10px !important;
    }
    
    .medicine-table th {
        background: #f5f5f5 !important;
        font-weight: bold !important;
    }
    
    .info-table td {
        padding: 3px 10px 3px 0 !important;
        font-size: 11px !important;
    }
    
    /* Lists */
    .simple-prescription ul {
        margin: 8px 0 !important;
        padding-left: 15px !important;
    }
    
    .simple-prescription li {
        font-size: 11px !important;
        margin: 3px 0 !important;
    }
    
    /* Horizontal rules */
    .simple-prescription hr {
        border: none !important;
        border-top: 1px solid #000 !important;
        margin: 10px 0 !important;
    }
    
    /* Page settings */
    @page {
        margin: 0.5in;
        size: A4;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .prescription-container {
        padding: 20px;
    }
    
    .doctor-info {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .rx-symbol {
        font-size: 36px;
    }
    
    .rx-title {
        font-size: 36px;
    }
    
    .medication-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .med-strength {
        margin-top: 5px;
    }
    
    .dosage-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .duration {
        margin-top: 8px;
    }
    
    .patient-info-section .col-md-4 {
        margin-bottom: 10px;
    }
    
    .medication-item .d-flex {
        flex-direction: column;
    }
    
    .prescription-actions .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Simple Prescription Styles */
.simple-prescription {
    background: white;
    border: 2px solid #000;
    padding: 30px;
    margin: 20px 0;
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
}

.prescription-header {
    text-align: center;
    margin-bottom: 20px;
}

.prescription-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #000;
}

.prescription-header p {
    margin: 5px 0;
    font-size: 14px;
    color: #000;
}

.doctor-info {
    margin-bottom: 20px;
}

.doctor-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #000;
}

.doctor-info p {
    margin: 2px 0;
    font-size: 14px;
    color: #000;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.info-table td {
    padding: 5px 15px 5px 0;
    font-size: 14px;
    color: #000;
}

.medicine-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.medicine-table th,
.medicine-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
    font-size: 12px;
    color: #000;
}

.medicine-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.simple-prescription h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #000;
}

.simple-prescription p,
.simple-prescription li {
    font-size: 14px;
    color: #000;
    margin: 5px 0;
}

.simple-prescription ul {
    margin: 10px 0;
    padding-left: 20px;
}

.simple-prescription hr {
    border: none;
    border-top: 1px solid #000;
    margin: 15px 0;
}

.signature-area {
    margin-top: 30px;
    text-align: right;
}

.signature-line {
    border-top: 1px solid #000;
    width: 300px;
    margin-left: auto;
    padding-top: 5px;
}

.signature-line p {
    margin: 2px 0;
    font-size: 12px;
}

/* Print Styles for Simple Prescription */
@media print {
    /* Hide only navigation and buttons */
    .prescription-actions,
    .sidebar,
    .patient-sidebar,
    .col-lg-3,
    .dashboard-sidebar,
    .patient-info-card,
    .dashboard-nav,
    .navbar,
    .profile-header,
    .footer,
    .btn,
    button {
        display: none !important;
    }
    
    /* Basic print setup */
    body {
        font-family: 'Times New Roman', serif;
        font-size: 12px;
        color: black;
        background: white;
    }
    
    /* Remove padding from containers */
    .container, .col-lg-9, section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Make main content full width */
    .col-lg-9 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Prescription container */
    .simple-prescription {
        border: 2px solid black;
        padding: 20px;
        margin: 0;
    }
    
    /* Tables */
    .medicine-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .medicine-table th,
    .medicine-table td {
        border: 1px solid black;
        padding: 5px;
        font-size: 10px;
    }
    
    .medicine-table th {
        background: #f5f5f5;
    }
    
    /* Page settings */
    @page {
        margin: 0.5in;
        size: A4;
    }
}

.select2-container .select2-selection--multiple {
    min-height: 38px!important;
    border: var(--bs-border-width) solid var(--bs-border-color);
}
.select2-container .select2-selection--multiple:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}
.select2-container .select2-search--inline .select2-search__field {
    height: 26px!important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px!important;
}
.select2-container .select2-selection--single {
    height: 38px!important;
    border: var(--bs-border-width) solid var(--bs-border-color);
}