/* =========================================
   IRONPHANTOM BASE – STRUCTURE ONLY
   ========================================= */

body.wp-admin.toplevel_page_ironphantom-dashboard #wpcontent,
body.wp-admin.toplevel_page_ironphantom-dashboard #wpbody-content {
    padding: 0 !important;
}

body.wp-admin.toplevel_page_ironphantom-dashboard .wrap {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* RESET */
.ironphantom-dashboard,
.ironphantom-dashboard * {
    box-sizing: border-box;
}

/* MAIN */
.ironphantom-dashboard {
    width: 100%;
    min-height: calc(100vh - 32px);
    font-family: 'Inter', sans-serif;
}

/* ================= HEADER ================= */
.ip-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 40px;
}

.ip-header-content {
    display: flex;
    flex-direction: column;
}

.ip-header h1 {
    font-size: 26px;
    font-weight: 800;
}

.ip-subtitle {
    font-size: 13px;
}

.ip-status {
    margin-left: auto;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

/* ================= SENSOR ================= */
.ip-sensor-section {
    padding: 30px 40px;
}

/* ================= TRANSACTIONS ================= */
.ip-transactions-section {
    padding: 30px 40px;
}

.ip-transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ip-actions {
    display: flex;
    gap: 10px;
}

/* TABLE */
.ip-table-wrapper {
    overflow-x: auto;
}

.ip-transactions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.ip-transactions-table th,
.ip-transactions-table td {
    padding: 14px;
    text-align: left;
}

/* ================= CARDS ================= */
.ip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px 40px;
}

.ip-stat-card {
    border-radius: 12px;
    padding: 20px;
}

.ip-stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ip-stat-title {
    font-size: 13px;
    font-weight: 700;
}

.ip-stat-list {
    list-style: none;
}

.ip-stat-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

/* ================= SYSTEM ================= */
.ip-system-list {
    list-style: none;
}

.ip-system-list li {
    display: flex;
    justify-content: space-between;
}

/* ================= FOOTER ================= */
.ip-footer {
    text-align: center;
    padding: 30px;
}

/* ================= MODAL ================= */
.ip-modal {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
}

.ip-modal-content {
    padding: 24px;
    width: 400px;
    max-width: 90%;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .ip-header {
        flex-direction: column;
        text-align: center;
    }

    .ip-status {
        margin-left: 0;
        margin-top: 10px;
    }

    .ip-transactions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ip-actions {
        width: 100%;
        flex-direction: column;
    }

    .ip-stats {
        grid-template-columns: 1fr;
    }
}
