/* Order Page Styles - order.css */

:root {
    --primary-color: #005A42;
    --secondary-color: #666;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #EEFFFA;
    --border-color: #dee2e6;
    --text-dark: #333;
    --text-muted: #666;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --uniform-gap: 20px;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

/* Cart Badge Styles */
.cart-badge-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.cart-icon-wrapper {
    position: relative;
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.cart-icon-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cart-icon {
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.mini-cart-dropdown {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-height: 500px;
    overflow: hidden;
}

.mini-cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mini-cart-header {
    padding: 15px 20px;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    height:55px;
}

.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-footer {
    padding: 15px 20px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}

.mini-cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Button Styles */
.proceed_to_checkout{
    padding: 8px 35px;
    border-radius: 6px;
    border: 1px solid var(--success-color);
    color: #fff;
    background: var(--success-color);
    font-weight: 400;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.button_custom_style {
    padding: 8px 35px;
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button_custom_style:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-danger.button_custom_style{
    border: 1px solid var(--danger-color);    
    color: var(--danger-color);    
}

.btn-danger.button_custom_style:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success.button_custom_style{
    border: 1px solid var(--success-color);    
    color: var(--success-color);    
}

.btn-success.button_custom_style:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-light.button_custom_style{
    border: 1px solid var(--light-bg);    
    color: var(--light-bg);    
}

.btn-light.button_custom_style:hover {
    background: var(--light-bg);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Action Buttons Row */
.action-buttons-row {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Cart Summary Card */
.cart-summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--uniform-gap);
    margin-bottom: var(--uniform-gap);
    box-shadow: var(--shadow-light);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.item-count {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgb(227 242 253);
    color: #000;
    border: 1px solid #b6c4de;
    border-radius: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
}

/* Cart Table Container */
.cart-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.cart-table-header {
    background: var(--primary-color);
    color: white;
    padding: 0;
}

.header-row, .item-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 140px 100px 120px 120px 120px;
    gap: 10px;
    align-items: center;
    padding: 15px 20px;
}

.header-col {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.medicine-col {
    text-align: left !important;
}

/* Cart Item Row */
#fromPower, #toPower {
    height: 40px;
    margin: 0;
}
#confirmPowerEdit{border-radius: 8px;padding:10px 20px;}
.cart-item-row {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cart-item-row:hover {
    background: var(--light-bg);
}

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

.item-col {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
}

.serial-col {
    justify-content: center;
}

.medicine-col {
    justify-content: flex-start;
    text-align: left;
}

.serial-badge {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Medicine Info */
.medicine-info {
    text-align: left;
    width:100%;
}

.medicine-name {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    font-size: 15px;
}

.medicine-surname {
    color: var(--text-muted);
    margin: 0;
    font-size: 13px;
}

/* Category Badge */
.category-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.category-lm {
    background: #e3f2fd;
    color: #1976d2;
}

.category-ch {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Power Display */
.power-display {
    width: 100%;
}

.power-btn {
    background: var(--light-bg);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.power-btn:hover {
    background: var(--primary-color);
    color: white;
}

.power-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
    text-align: left;
}

.edit-icon {
    font-size: 10px;
    opacity: 0.7;
}

/* Size Select */
.size-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 13px;
}

.size-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 90, 66, 0.1);
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.qty-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #003d30;
    transform: scale(1.1);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px;
    font-size: 13px;
}

.qty-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Price Info */
.price-info {
    text-align: center;
}

.unit-price {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.total-price {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.duplicate-btn {
    background: var(--info-color);
    color: white;
}

.duplicate-btn:hover {
    background: #138496;
    transform: scale(1.1);
}

.delete-btn {
    background: var(--danger-color);
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Table Footer */
.cart-table-footer {
    background: var(--light-bg);
    padding: 20px;
    border-top: 2px solid var(--primary-color);
}

.footer-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-label {
    font-weight: 500;
    color: var(--text-muted);
}

.summary-value {
    font-weight: bold;
    color: var(--text-dark);
}

.total-amount .summary-label,
.total-amount .summary-value {
    font-size: 18px;
    color: var(--primary-color);
}

/* Checkout Section */
.checkout-section {
    margin-bottom: 30px;
}

.checkout-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.checkout-header h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.checkout-header p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.checkout-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Empty States */
.empty-cart-state,
.login-required-state {
    text-align: center;
    padding: 0px;
    padding-bottom: 30px;
    margin-bottom:30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-cart-icon,
.login-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-cart-state h3,
.login-required-state h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.empty-cart-state p,
.login-required-state p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

.empty-cart-actions,
.login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal{
    top:-20%;
}
.modal-content {
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    /*background: var(--light-bg);*/
}

.modal-header {
    background: var(--primary-color);
    padding: 3%;
    border-radius: 12px 12px 0 0;
}

.modal-title{
    color: #fff;
}

/* Power Options in Modal */
#power-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

#power-options label {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 4px;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#power-options label:hover {
    background: var(--primary-color);
    color: white;
}

#power-options input[type="checkbox"]:checked + span {
    /*background: var(--primary-color);*/
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-row, .item-row {
        grid-template-columns: 50px 1fr 80px 100px 80px 100px 100px 100px;
        gap: 5px;
        padding: 10px;
        font-size: 13px;
    }
    
    .medicine-name {
        font-size: 13px;
    }
    
    .medicine-surname {
        font-size: 11px;
    }
    
    .power-btn,
    .size-select {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .qty-input {
        width: 40px;
        font-size: 11px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .cart-badge-container {
        bottom: 20px;
        right: 20px;
    }
    
    .cart-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .mini-cart-dropdown {
        width: 300px;
        bottom: 60px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkout-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .header-row, .item-row {
        grid-template-columns: 40px 1fr 70px 90px 70px 90px 90px 80px;
        gap: 3px;
        padding: 8px;
        font-size: 11px;
    }
    
    .power-text {
        font-size: 10px;
    }
    
    .mini-cart-dropdown {
        width: 280px;
        right: -50px;
    }
    
    .action-buttons-row .col-12 {
        margin-bottom: 10px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.success-state {
    border-left: 4px solid var(--success-color);
    background: #d4edda;
    color: #155724;
}

.error-state {
    border-left: 4px solid var(--danger-color);
    background: #f8d7da;
    color: #721c24;
}

/*06-Aug-25*/
/* Update grid template for new column order */
.header-row, .item-row {
    display: grid;
    grid-template-columns: 60px 100px 100px 140px 1fr 120px 120px;
    gap: 10px;
    align-items: center;
    padding: 15px 20px;
}

/* Medicine button styles */
.medicine-btn {
    background: var(--light-bg);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    position: relative;
}

.medicine-btn:hover {
    background: var(--primary-color);
    color: white;
}

.medicine-btn .medicine-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.medicine-btn .medicine-surname {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.medicine-btn .edit-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
}

/* Medicine selection modal styles */
.medicine-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.medicine-select-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.medicine-select-item:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.medicine-select-item.selected {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.medicine-radio {
    margin-right: 10px;
}

.medicine-label {
    flex-grow: 1;
    cursor: pointer;
}

.medicine-label .medicine-name {
    font-weight: 600;
    color: var(--text-dark);
}

.medicine-label .medicine-surname {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-row, .item-row {
        grid-template-columns: 50px 80px 80px 100px 1fr 80px 100px;
        gap: 5px;
        padding: 10px;
        font-size: 13px;
    }
    
    .medicine-btn .medicine-name {
        font-size: 12px;
    }
    
    .medicine-btn .medicine-surname {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .header-row, .item-row {
        grid-template-columns: 40px 70px 70px 90px 1fr 70px 80px;
        gap: 3px;
        padding: 8px;
        font-size: 11px;
    }
}

/* Medicine Selection Modal Styles */
#medicineModal .modal-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

#medicineModal .modal-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

#medicineModal .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#medicineModal .btn-close-white:hover {
    opacity: 1;
}

#medicineModal .modal-body {
    padding: 20px;
}

#medicineModal .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 14px;
}

#medicineModal .form-label i {
    color: var(--primary-color);
}

/* Medicine Search Input */
#medicineSearch {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#medicineSearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 66, 0.1);
    outline: none;
}

/* Medicine List Container */
.medicine-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

/* Custom Scrollbar for Medicine List */
.medicine-list-container::-webkit-scrollbar {
    width: 8px;
}

.medicine-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.medicine-list-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.medicine-list-container::-webkit-scrollbar-thumb:hover {
    background: #003d30;
}

/* Medicine Select List */
.medicine-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Medicine Select Item */
.medicine-select-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.medicine-select-item:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.medicine-select-item.selected {
    background: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 90, 66, 0.15);
}

.medicine-select-item.selected::after {
    content: '\2713';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
}

/* Medicine Radio Button */
.medicine-radio {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.medicine-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Medicine Label */
.medicine-label {
    flex-grow: 1;
    cursor: pointer;
    user-select: none;
}

.medicine-label .medicine-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 2px;
}

.medicine-label .medicine-surname {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Modal Footer Buttons */
#medicineModal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
}

#medicineModal .btn {
    min-width: 120px;
}

/* Confirm Medicine Change Button States */
#confirmMedicineChange:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#confirmMedicineChange:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Loading State for Medicine List */
.medicine-list-container .text-center {
    padding: 40px;
}

.medicine-list-container .fa-spinner {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Alert Styles in Medicine Modal */
#medicineModal .alert {
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
}

#medicineModal .alert-info {
    background-color: #e3f2fd;
    border-color: #b3d9f2;
    color: #0d47a1;
}

#medicineModal .alert-danger {
    background-color: #ffebee;
    border-color: #ffcdd2;
    color: #b71c1c;
}

/* Responsive Adjustments for Medicine Modal */
@media (max-width: 768px) {
    #medicineModal .modal-dialog {
        margin: 10px;
    }
    
    .medicine-list-container {
        max-height: 300px;
    }
    
    .medicine-select-item {
        padding: 10px 12px;
    }
    
    .medicine-label .medicine-name {
        font-size: 14px;
    }
    
    .medicine-label .medicine-surname {
        font-size: 12px;
    }
    
    #medicineModal .btn {
        min-width: 100px;
        font-size: 13px;
        padding: 6px 15px;
    }
}

@media (max-width: 576px) {
    #medicineModal .modal-content {
        border-radius: 8px;
    }
    
    #medicineModal .modal-header {
        padding: 12px 15px;
    }
    
    #medicineModal .modal-title {
        font-size: 16px;
    }
    
    .medicine-select-item {
        padding: 8px 10px;
    }
    
    .medicine-select-item.selected::after {
        font-size: 16px;
        right: 10px;
    }
    
    .medicine-radio input[type="radio"] {
        width: 16px;
        height: 16px;
    }
}

/* Animation for Medicine Selection */
@keyframes selectPulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 90, 66, 0.15);
    }
    50% {
        box-shadow: 0 2px 16px rgba(0, 90, 66, 0.25);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 90, 66, 0.15);
    }
}

.medicine-select-item.selected {
    animation: selectPulse 2s ease-in-out infinite;
}

/* Hover Effect for Medicine Items */
.medicine-select-item:hover .medicine-name {
    color: var(--primary-color);
}

/* Empty State Styling */
.medicine-list-container .alert {
    text-align: center;
    padding: 30px;
    margin: 0;
}

.medicine-list-container .alert i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

#confirmMedicineChange{padding: 8px;border-radius: 5px;}

/* Style for placeholder medicine selection */
.medicine-btn .medicine-name[style*="italic"] {
    border: 2px dashed #dee2e6;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.medicine-btn .medicine-name[style*="italic"]:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
    color: #007bff !important;
}

/* Add visual indicator for empty rows */
.cart-item-row[data-empty-row="true"] {
    background-color: #fefefe;
    border-left: 3px solid #17a2b8;
}

/* Style for placeholder size selection */
.size-select option:disabled {
    color: #6c757d;
    font-style: italic;
}

/* Style for placeholder power selection */
.power-btn .power-text:contains("Select Powers") {
    color: #6c757d;
    font-style: italic;
}

/* Style for placeholder medicine selection */
.medicine-btn .medicine-name[style*="italic"] {
    border: 2px dashed #dee2e6;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.medicine-btn .medicine-name[style*="italic"]:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
    color: #007bff !important;
}

/* General placeholder styling */
.cart-item-row[data-placeholder="true"] {
    background-color: #fefefe;
    border-left: 3px solid #17a2b8;
}