/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f5f7fb;
    color: #1f2933;
}

/* ================= HEADER ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #1e293b;
    color: white;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

/* ================= INTRO ================= */
.intro {
    padding: 20px 25px;
    max-width: 1200px;
    margin: auto;
}

/* ================= KPI GRID ================= */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px 25px;
    max-width: 1200px;
    margin: auto;
}

.kpi-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* ================= CHARTS ================= */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px 25px;
    max-width: 1200px;
    margin: auto;
}

.chart-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    height: 320px;
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

/* ================= INSIGHTS ================= */
.insights {
    padding: 20px 25px;
    max-width: 1200px;
    margin: auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.insight-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
}

/* ================= TABLE ================= */
.table-section {
    padding: 20px 25px;
    max-width: 1200px;
    margin: auto;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

/* ================= FOOTER ================= */
.footer {
    text-align: center;
    padding: 15px;
    background: #1e293b;
    color: white;
}

/* ================= BUTTONS ================= */
.btn {
    background: #4f46e5;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    margin-left: 10px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }
}


/*⚡⚡⚡⚡Bot style*/
/* ================= FLOATING BUTTON ================= */
.chat-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 85px;
    height: 85px;
    background: #4f46e5;
    color: white;
    font-size: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 999;
}

/* ================= CHAT POPUP ================= */
.chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 520px;
    height: 650px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

/* ================= HEADER ================= */
.chat-header {
    background: #4f46e5;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= BODY ================= */
.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #0C0B1F;
}

/* ================= MESSAGES ================= */
.bot-msg, .user-msg {
    padding: 8px 10px;
    margin: 6px 0;
    border-radius: 8px;
    max-width: 80%;
    font-size: 14px;
}

.bot-msg {
    background: #D446E5;
    align-self: flex-start;
    color: white;
}

.user-msg {
    background: white;
    color: black;
    margin-left: auto;
}

/* ================= INPUT ================= */
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.chat-input button {
    background: #D446E5;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
    .chat-popup {
        width: 90%;
        right: 5%;
        height: 400px;
    }
}