/* ================= ROOT VARIABLES ================= */
:root {
    --bg:#0f172a;
    --card:rgba(255,255,255,0.06);
    --text:#e2e8f0;
    --accent:#3b82f6;
    --green:#22c55e;
    --red:#ef4444;
    --yellow:#facc15;
    --shadow:0 8px 30px rgba(0,0,0,0.3);
}

/* LIGHT MODE */
body.light {
    --bg:#f1f5f9;
    --card:#ffffff;
    --text:#0f172a;
}

/* ================= GLOBAL ================= */
body {
    margin:0;
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    display:flex;
}

/* ================= GLOBAL IMAGE FIX ================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width:240px;
    height:100vh;
    background:rgba(0,0,0,0.75);
    backdrop-filter:blur(12px);
    padding:15px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.logo {
    display:flex;
    align-items:center;
    gap:10px;
}

.logo h2 {
    color:var(--accent);
}

/* NAV */
.nav-links {
    list-style:none;
    padding:0;
    margin-top:20px;
}

.nav-item {
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s;
}

.nav-item:hover {
    background:rgba(255,255,255,0.1);
}

.nav-item.active {
    background:var(--accent);
    color:white;
}

/* ================= MAIN ================= */
.main {
    flex:1;
    padding:20px;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ================= LAYOUT FIX ================= */
.main-container {
    display:grid;
    grid-template-columns:3fr 1fr;
    gap:20px;
    margin-top:20px;
}

.main-content {
    display:flex;
    flex-direction:column;
    gap:20px;
}

.main img {
    display: none !important;
}

/* ================= CARDS ================= */
.cards {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
}

.card {
    background:var(--card);
    padding:20px;
    border-radius:14px;
    backdrop-filter:blur(12px);
    box-shadow:var(--shadow);
    transition:0.3s;
}

.card:hover {
    transform:translateY(-5px) scale(1.02);
}

/* ================= TEXT ================= */
.card h3 {
    margin-bottom:10px;
}

p {
    margin:5px 0;
}

/* ================= STATUS COLORS ================= */
.pass { color:var(--green); }
.fail { color:var(--red); }
.cond { color:var(--yellow); }

/* ================= UPLOAD ================= */
.upload-box {
    border:2px dashed var(--accent);
    padding:40px;
    text-align:center;
    cursor:pointer;
    border-radius:12px;
}

/* ================= TIMELINE ================= */
.timeline {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.step {
    padding:10px 15px;
    border-radius:8px;
    background:var(--card);
    animation:fadeIn 0.5s ease;
}

.error {
    background:var(--red);
}

/* ================= FRAUD ================= */
.meter {
    background:#e2e8f0;
    height:10px;
    border-radius:10px;
}

.meter-fill {
    height:10px;
    border-radius:10px;
    background:var(--red);
    transition:1s;
}

/* ================= PDF VIEW ================= */
.pdf-view {
    height:200px;
    background:#111;
    border-radius:10px;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* ================= BUTTON ================= */
button {
    padding:10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:var(--accent);
    color:white;
    width:100%;
}

/* ================= CHAT ================= */
.chat {
    position:fixed;
    bottom:20px;
    right:20px;
    width:280px;
    background:var(--card);
    padding:10px;
    border-radius:10px;
    box-shadow:var(--shadow);
}

.chat input {
    width:100%;
    padding:6px;
    border-radius:6px;
    border:none;
}

/* CHAT MESSAGES */
.chat-message {
    padding:8px;
    margin:5px 0;
    border-radius:8px;
    font-size:13px;
}

.chat-message.user {
    background:#3b82f6;
    color:white;
    text-align:right;
}

.chat-message.ai {
    background:rgba(255,255,255,0.1);
}

/* ================= UTIL ================= */
.hidden {
    display:none !important;
}

/* ================= SPINNER ================= */
.spinner {
    display:none;
    border:4px solid #ccc;
    border-top:4px solid var(--accent);
    border-radius:50%;
    width:40px;
    height:40px;
    animation:spin 1s linear infinite;
}

/* ================= ANIMATIONS ================= */
@keyframes spin {
    100% { transform:rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity:0; transform:translateY(10px); }
    to { opacity:1; transform:translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media (max-width:900px) {
    .main-container {
        grid-template-columns:1fr;
    }

    .sidebar {
        display:none;
    }

    .navbar {
        flex-direction:column;
        gap:10px;
    }
}
/* ================= CHAT COMPONENT ================= */

.chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

/* HEADER */
.chat-header {
    padding: 10px;
    background: var(--accent);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* BODY */
.chat-body {
    height: 180px;
    overflow-y: auto;
    padding: 10px;
}

/* INPUT */
.chat-input {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-input input {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: none;
    outline: none;
}

/* MESSAGES */
.chat-message {
    padding: 8px;
    margin: 5px 0;
    border-radius: 8px;
    font-size: 13px;
}

.chat-message.user {
    background: var(--accent);
    color: white;
    text-align: right;
}

.chat-message.ai {
    background: rgba(255,255,255,0.1);
}
/* ================= LOGO ================= */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.logo h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}
/* ================= FIX: GLOBAL ALIGNMENT ================= */



/* Prevent huge images inside main */
.main img {
    max-width: 300px;
    margin: 20px auto;
}

/* Fix navbar alignment */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fix grid layout */
.main-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Fix chat overlap */
.chat {
    z-index: 1000;
}
/* ===== REMOVE RIGHT SIDE LOGO ONLY ===== */
.side-panel img {
    display: none !important;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
}

.clock {
    font-size: 14px;
    opacity: 0.8;
}
.bulk-claim-section {
    margin-top: 25px;
}