.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}
.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}
.step-item {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33.33%;
}
.step-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}
.step-item.active .step-counter {
    background: #4B49AC;
    border-color: #4B49AC;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(75, 73, 172, 0.1);
}
.step-item.completed .step-counter {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}
.step-item.active .step-label { color: #4B49AC; }

.gamified-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}
.form-section-title i {
    width: 32px;
    height: 32px;
    background: rgba(75, 73, 172, 0.1);
    color: #4B49AC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.medication-bubble {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    transition: all 0.2s;
}
.medication-bubble:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #4B49AC33;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.remove-med-btn {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.remove-med-btn:hover { background: #ef4444; color: #fff; }

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-tip-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    border-left: 5px solid #4B49AC !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quick-tip-icon {
    width: 45px;
    height: 45px;
    background: #f0edff;
    border: 2px solid #4B49AC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #4B49AC;
    font-size: 1.5rem;
}

/* Medication Status Badges */
.badge-pending, .btn.badge-pending { background-color: #f3c12d !important; color: #000 !important; border: none !important; opacity: 1 !important; visibility: visible !important; display: inline-block !important; }
.badge-taken, .btn.badge-taken { background-color: #28a745 !important; color: #fff !important; border: none !important; opacity: 1 !important; visibility: visible !important; display: inline-block !important; }
.badge-missed, .btn.badge-missed { background-color: #dc3545 !important; color: #fff !important; border: none !important; opacity: 1 !important; visibility: visible !important; display: inline-block !important; }
.badge-skipped, .btn.badge-skipped { background-color: #6f42c1 !important; color: #fff !important; border: none !important; opacity: 1 !important; visibility: visible !important; display: inline-block !important; }
.badge-refused, .btn.badge-refused { background-color: #fd7e14 !important; color: #fff !important; border: none !important; opacity: 1 !important; visibility: visible !important; display: inline-block !important; }
.badge-on-hold, .btn.badge-on-hold { background-color: #007bff !important; color: #fff !important; border: none !important; opacity: 1 !important; visibility: visible !important; display: inline-block !important; }
.badge-stopped, .btn.badge-stopped { background-color: #6c757d !important; color: #fff !important; border: none !important; opacity: 1 !important; visibility: visible !important; display: inline-block !important; }

/* Hover Effects - Solid No Fade */
.badge-pending:hover, .btn.badge-pending:hover { background-color: #e6b420 !important; color: #000 !important; transform: translateY(-1px); opacity: 1 !important; filter: none !important; }
.badge-taken:hover, .btn.badge-taken:hover { background-color: #218838 !important; color: #fff !important; transform: translateY(-1px); opacity: 1 !important; filter: none !important; }
.badge-missed:hover, .btn.badge-missed:hover { background-color: #c82333 !important; color: #fff !important; transform: translateY(-1px); opacity: 1 !important; filter: none !important; }
.badge-skipped:hover, .btn.badge-skipped:hover { background-color: #5a32a3 !important; color: #fff !important; transform: translateY(-1px); opacity: 1 !important; filter: none !important; }
.badge-refused:hover, .btn.badge-refused:hover { background-color: #e67300 !important; color: #fff !important; transform: translateY(-1px); opacity: 1 !important; filter: none !important; }
.badge-on-hold:hover, .btn.badge-on-hold:hover { background-color: #0069d9 !important; color: #fff !important; transform: translateY(-1px); opacity: 1 !important; filter: none !important; }
.badge-stopped:hover, .btn.badge-stopped:hover { background-color: #5a6268 !important; color: #fff !important; transform: translateY(-1px); opacity: 1 !important; filter: none !important; }

.dropdown-toggle::after {
    border-top-color: inherit !important;
}

.gamified-badge, .btn.rounded-pill {
    transition: all 0.2s ease-in-out;
}

.medication-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.medication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.med-icon-box {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    color: #4B49AC;
    font-size: 1.5rem;
}

.med-main-info {
    flex-grow: 1;
}

.med-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: block;
}

.med-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.med-meta .item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.med-status-box {
    text-align: right;
    min-width: 140px;
}

.status-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    display: block;
}

.gamified-badge {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .medication-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .med-icon-box {
        margin-bottom: 1rem;
    }
    .med-status-box {
        text-align: left;
        margin-top: 1rem;
        width: 100%;
    }
    .med-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}
