/* =====================================================
   MedClaim AI – Component Stylesheet (FINAL UPGRADED)
===================================================== */

/* ================= SECTION ================= */
.section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* ================= DIVIDER ================= */
.divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 12px 0;
}

/* ================= BADGE ================= */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
}

.badge.success {
    background: rgba(34,197,94,0.2);
    color: var(--green);
}

.badge.warning {
    background: rgba(250,204,21,0.2);
    color: var(--yellow);
}

.badge.danger {
    background: rgba(239,68,68,0.2);
    color: var(--red);
}

/* ================= ALERT ================= */
.alert {
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
}

.alert.success {
    background: rgba(34,197,94,0.1);
    color: var(--green);
}

.alert.warning {
    background: rgba(250,204,21,0.1);
    color: var(--yellow);
}

.alert.error {
    background: rgba(239,68,68,0.1);
    color: var(--red);
}

/* ================= BUTTON GROUP ================= */
.btn-group {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.btn-danger {
    background: var(--red);
    color: white;
}

.btn-success {
    background: var(--green);
    color: white;
}

/* ================= CARD HEADER ================= */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* ================= TABLE ================= */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
}

.table th {
    opacity: 0.7;
    font-weight: 500;
}

.table tr {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: 0.2s;
}

.table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* STATUS COLORS INSIDE TABLE */
.table td.pass {
    color: var(--green);
    font-weight: 600;
}

.table td.fail {
    color: var(--red);
    font-weight: 600;
}

.table td.cond {
    color: var(--yellow);
    font-weight: 600;
}

/* ================= TAG ================= */
.tag {
    display: inline-block;
    padding: 4px 7px;
    font-size: 11px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}

/* ================= ICON BUTTON ================= */
.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 16px;
    transition: 0.2s;
}

.icon-btn:hover {
    color: var(--accent);
}

/* ================= TOOLTIP ================= */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 5px;
    white-space: nowrap;
}

/* ================= PROGRESS ================= */
.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 8px;
    width: 0%;
    background: var(--accent);
    transition: 0.5s;
}

/* ================= LIST ================= */
.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-clean li {
    padding: 6px 0;
}

/* ================= FLEX UTIL ================= */
.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================= TEXT UTIL ================= */
.text-muted {
    opacity: 0.6;
    font-size: 12px;
}

.text-bold {
    font-weight: 600;
}

/* ================= SHADOW ================= */
.shadow-sm {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.shadow-md {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ================= ROUNDED ================= */
.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 14px;
}

/* ================= BULK TABLE SCROLL ================= */
.table-container {
    max-height: 400px;
    overflow-y: auto;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    .table {
        font-size: 12px;
    }

    .btn-group {
        flex-direction: column;
    }

}