:root {
    --medical-primary: #198754;      /* Medical Green */
    --medical-secondary: #0dcaf0;    /* Medical Blue */
    --medical-accent: #6f42c1;       /* Medical Purple */
    --medical-light: #e8f5e9;        /* Light Green Background */
    --medical-dark: #2c3e50;         /* Dark Text */
    --medical-border: #d1e7dd;       /* Border Color */
    --medical-danger: #dc3545;       /* Alert/Logout */
}

.medical_form_label .text-danger {
    font-weight: bold;
}
.medico-flash-wrapper .alert {
    border-radius: 12px;
    font-size: 0.95rem;
}
.medico-flash-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.medico-flash-message {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Sidebar Base Styles */
.medical_sidebar {
    background: #f8f9fa;
    border-radius: 12px;
}

.medical_title {
    color: var(--medical-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medical-border);
}

/* Menu Item Styles */
.widget-medical {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-medical li {
    margin-bottom: 6px;
}

.widget-medical li a.medical_item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--medical-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.widget-medical li a.medical_item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.15);
    border-color: var(--medical-primary);
    background: linear-gradient(135deg, #ffffff, var(--medical-light));
}

.widget-medical li a.medical_item.active {
    background: linear-gradient(135deg, var(--medical-primary), #20c997);
    color: white !important;
    border-color: var(--medical-primary);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.25);
    font-weight: 600;
}

.widget-medical li a.medical_item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
}

.widget-medical li a.medical_item.active .medical_icon i {
    color: white;
}

/* Menu Components */
.medical_icon {
    width: 32px;
    height: 32px;
    background: var(--medical-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.medical_item:hover .medical_icon {
    background: white;
    transform: scale(1.1);
}

.medical_item.active .medical_icon {
    background: rgba(255, 255, 255, 0.2);
}

.medical_icon i {
    color: var(--medical-primary);
    font-size: 0.9rem;
}

.medical-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.medical-arrow {
    color: #adb5bd;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.medical_item:hover .medical-arrow {
    transform: translateX(3px);
    color: var(--medical-primary);
}

.medical_item.active .medical-arrow {
    color: white;
}

/* Logout Item Specific */
.widget-medical li a.logout-item:hover {
    background: linear-gradient(135deg, #ffeaea, #fff);
    border-color: var(--medical-danger);
    color: var(--medical-danger);
}

.widget-medical li a.logout-item:hover .medical_icon {
    background: var(--medical-danger);
}

.widget-medical li a.logout-item:hover .medical_icon i {
    color: white;
}

.widget-medical li a.logout-item:hover .medical-arrow {
    color: var(--medical-danger);
}

/* Stats Widget */
.customer-stats {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid var(--medical-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.customer-stats .stats-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.customer-stats i {
    color: var(--medical-primary);
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Help Widget */
.help-widget {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #e0c4fd;
}

.help-widget i {
    color: var(--medical-accent);
}

.help-widget .btn-outline-primary {
    color: var(--medical-accent);
    border-color: var(--medical-accent);
    padding: 8px;
}

.help-widget .btn-outline-primary:hover {
    background: var(--medical-accent);
    color: white;
}

/* Responsive Design */
@media (max-width: 991px) {
    .shop-sidebar {
        margin-bottom: 30px;
    }
    
    .widget-menu li a.medical_item {
        padding: 10px 12px;
    }
    
    .medical_icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .medical_icon i {
        font-size: 0.8rem;
    }
    
    .menu-text {
        font-size: 0.9rem;
    }
}

/* Animation for Active State */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.widget-menu li a.medical_item.active {
    animation: pulse 2s infinite;
}

/* Dashboard Main Container */
.medical_dashboard {
    border: 1px solid rgba(87, 177, 186, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

/* Welcome Section */
.medical_welcome {
    padding: 35px 0;
    background: linear-gradient(135deg, rgba(87, 177, 186, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
    border-radius: 16px 16px 0 0;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.medical_welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #57b1ba, #1e3d72);
}

.medical_welcome_icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(87, 177, 186, 0.1));
    border: 2px solid rgba(87, 177, 186, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.medical_welcome_icon:hover {
    transform: scale(1.05) rotate(10deg);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(87, 177, 186, 0.2));
    border-color: #57b1ba;
}

.medical_welcome_icon i {
    color: #57b1ba;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.medical_welcome_icon:hover i {
    color: #1e3d72;
    transform: scale(1.1);
}

.medical_welcome_title {
    color: #1e3d72;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.medical_welcome_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #57b1ba);
    border-radius: 3px;
}

/* Dashboard Sections */
.medical_dashboard_section {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(87, 177, 186, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.medical_dashboard_section:hover {
    box-shadow: 0 10px 30px rgba(87, 177, 186, 0.15);
    border-color: #57b1ba;
    transform: translateY(-3px);
}

/* Section Headers */
.medical_section_header {
    background: linear-gradient(90deg, rgba(87, 177, 186, 0.1), rgba(87, 177, 186, 0.05));
    padding: 18px 25px;
    border-bottom: 2px solid rgba(87, 177, 186, 0.3);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.medical_section_header_title {
    color: #1e3d72;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.medical_section_header_title i {
    color: #57b1ba;
    margin-right: 10px;
}

/* Section Body */
.medical_section_body {
    padding: 25px;
}

/* Medical Form Labels */
.medical_form_label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280 !important;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

/* Medical Value Text */
.medical_value {
    color: #374151 !important;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(87, 177, 186, 0.2);
}

/* Medical Badges */
.medical_value_badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.medical_value_badge.bg-success {
    background: linear-gradient(135deg, #16a34a, #10b981) !important;
    border-color: #059669 !important;
}

.medical_value_badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
    border-color: #4b5563 !important;
}

/* Medical Buttons */
.medical_btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.medical_btn_outline {
    color: #57b1ba;
    border: 2px solid #57b1ba;
    background: transparent;
}

.medical_btn_outline:hover {
    background: #57b1ba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 177, 186, 0.3);
}

.medical_btn_primary {
    background: linear-gradient(135deg, #1e3d72, #57b1ba);
    border: none;
    color: white;
}

.medical_btn_primary:hover {
    background: linear-gradient(135deg, #57b1ba, #007B7F);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 61, 114, 0.3);
    color: white;
}

.medical_btn_sm {
    padding: 6px 15px;
    font-size: 0.9rem;
}

/* No Data Message */
.medical_no_data {
    text-align: center;
    padding: 30px;
}

.medical_no_data_icon {
    color: #57b1ba;
    opacity: 0.5;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.medical_no_data_text {
    color: #6b7280;
    margin-bottom: 20px;
}

/* Medical Footer */
.medical_footer {
    background: linear-gradient(135deg, rgba(87, 177, 186, 0.1), rgba(22, 163, 74, 0.05));
    padding: 20px 25px;
    border-top: 2px solid rgba(87, 177, 186, 0.3);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.medical_footer_text {
    color: #6b7280;
    font-size: 0.9rem;
}

.medical_footer_text i {
    color: #57b1ba;
    margin-right: 8px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medical_dashboard_section:nth-child(1) { animation-delay: 0.1s; }
.medical_dashboard_section:nth-child(2) { animation-delay: 0.2s; }
.medical_dashboard_section:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Dashboard */
@media (max-width: 768px) {
    .medical_dashboard {
        padding: 15px !important;
    }
    
    .medical_section_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .medical_section_body {
        padding: 20px 15px;
    }
    
    .medical_footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .medical_welcome_title {
        font-size: 1.4rem;
    }
}

/* Medical Stats Cards */
.row.mt-4.g-3 .medical_dashboard_section {
    border: 1px solid rgba(87, 177, 186, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.row.mt-4.g-3 .medical_dashboard_section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(87, 177, 186, 0.15);
    border-color: #57b1ba;
}

.row.mt-4.g-3 .medical_dashboard_section .medical_icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(87, 177, 186, 0.1), rgba(87, 177, 186, 0.2));
    border: 1px solid rgba(87, 177, 186, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.row.mt-4.g-3 .medical_dashboard_section:hover .medical_icon {
    background: linear-gradient(135deg, #57b1ba, #007B7F);
    transform: scale(1.1) rotate(5deg);
    border-color: #57b1ba;
}

.row.mt-4.g-3 .medical_dashboard_section:hover .medical_icon i {
    color: white !important;
}

.row.mt-4.g-3 .medical_dashboard_section .medical_icon i {
    color: #57b1ba;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.row.mt-4.g-3 .medical_dashboard_section .medical_value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3d72;
    border: none;
    padding: 0;
    margin-bottom: 5px;
}

.row.mt-4.g-3 .medical_dashboard_section .medical_form_label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}
.customer-dashboard {
    border: 1px solid #e9ecef;
}
.customer-section:last-child {
    border-bottom: none !important;
}
.section-header {
    border-bottom: 1px solid #e9ecef;
}
.form-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--medico-menu-hover-bg);
    color: var(--medico-menu-hover-text);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
