/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f9ff;
    color: #10213b;
    overflow-x: hidden;
}

/* =========================
   BACKGROUND EFFECTS
========================= */

.bg1,
.bg2 {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.bg1 {
    background: rgba(11, 60, 140, 0.10);
    top: -150px;
    left: -150px;
}

.bg2 {
    background: rgba(31, 111, 235, 0.10);
    bottom: -180px;
    right: -120px;
}

/* =========================
   PAGE HEADER
========================= */

.page-header {
    background: linear-gradient(135deg, #0B3C8C, #1F6FEB, #1EC8A5);
    padding: 35px 20px;
    text-align: center;
    margin-top: 2px;
    width: 100%;
}

.main-heading {
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
}

/* =========================
   WRAPPER
========================= */

.wrapper {
    width: 95%;
    max-width: 1450px;
    margin: 25px auto;
}

/* =========================
   KPI SECTION
========================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.kpi {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #e3eeff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.kpi-title {
    font-size: 14px;
    font-weight: 800;
    color: #62718f;
}

.kpi-value {
    font-size: 30px;
    font-weight: 900;
    margin-top: 5px;
}

.kpi-sub {
    margin-top: 8px;
    font-size: 13px;
    color: #74839f;
}

/* =========================
   MAIN GRID
========================= */

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

/* =========================
   BOX DESIGN
========================= */

.box {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #dfe9ff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.box-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fbff;
    border-bottom: 1px solid #edf3ff;
}

.box-title {
    font-size: 20px;
    font-weight: 800;
}

.count {
    padding: 8px 15px;
    border-radius: 999px;
    background: #eef5ff;
    font-weight: 800;
    font-size: 13px;
}

/* =========================
   TEXTAREA
========================= */

textarea {
    width: 100%;
    height: 500px;
    border: none;
    outline: none;
    padding: 22px;
    font-size: 15px;
    resize: none;
    font-family: Consolas, monospace;
    color: #10213b;
    line-height: 1.7;
}

textarea::placeholder {
    color: #8ea0bd;
}

/* =========================
   BUTTONS
========================= */

.actions {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    border-top: 1px solid #edf3ff;
}

.action-btn {
    border: none;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    transition: 0.25s;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.primary {
    background: linear-gradient(135deg, #0B3C8C, #1F6FEB);
    color: #ffffff;
}

.red {
    background: linear-gradient(135deg, #ff4b4b, #ff8a8a);
    color: #ffffff;
}

.green {
    background: linear-gradient(135deg, #1EC8A5, #87ffe0);
    color: #042b22;
}

/* =========================
   TOAST
========================= */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #0b3c8c;
    color: #ffffff;
    padding: 13px 16px;
    margin-top: 10px;
    border-radius: 12px;
    min-width: 250px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    textarea {
        height: 360px;
    }
}

@media (max-width: 768px) {

    .page-header {
        padding: 25px 15px;
    }

    .main-heading {
        font-size: 24px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    textarea {
        height: 280px;
    }
}

@media (max-width: 480px) {

    .main-heading {
        font-size: 21px;
    }

    textarea {
        height: 220px;
        font-size: 13px;
    }
}