.wm-widget {
    max-width: 440px;
    padding: 22px;
    box-sizing: border-box;
    background: #111c2d;
    border: 1px solid #29374b;
    border-radius: 14px;
    color: #edf3fc;
    font-family: Arial, sans-serif;
}

.wm-widget * {
    box-sizing: border-box;
}

.wmw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wmw-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
}

.wmw-badge.online {
    background: #123e30;
    color: #66e5a8;
}

.wmw-badge.offline {
    background: #51252d;
    color: #ff929b;
}

.wmw-badge.unknown {
    background: #354257;
    color: #cbd5e1;
}

.wmw-domain {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.wmw-domain small,
.wmw-stats small {
    display: block;
    margin-top: 5px;
    color: #8fa1b9;
    font-size: 12px;
}

.wmw-dot {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #20cf82;
}

.wmw-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #29374b;
}

.wmw-stats strong {
    font-size: 25px;
}

.wmw-history {
    display: flex;
    gap: 3px;
    margin-top: 22px;
}

.wmw-history span {
    flex: 1;
    height: 10px;
    border-radius: 3px;
    background: #20b77b;
}

.wmw-history .offline {
    background: #e34d5c;
}

.wmw-history .unknown {
    background: #536176;
}

.wmw-footer {
    margin-top: 14px;
    color: #8192a9;
    font-size: 11px;
}

/* Monitoring overzicht */

.wm-overview {
    background: #111c2d;
    color: #edf3fc;
    border: 1px solid #29374b;
    border-radius: 15px;
    padding: 24px;
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.wm-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.wm-overview-header h2 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 22px;
}

.wm-overview-header p {
    color: #91a2b9;
    margin: 0;
}

.wm-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #54e5a7;
    font-size: 12px;
}

.wm-live-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20d18b;
}

.wm-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.wm-overview-card {
    background: #1b2a40;
    border: 1px solid #293b53;
    border-radius: 11px;
    padding: 20px;
}

.wm-overview-card > span {
    display: block;
    color: #9aabc0;
    font-size: 13px;
}

.wm-overview-card strong {
    display: block;
    color: #fff;
    font-size: 32px;
    margin: 12px 0 5px;
}

.wm-overview-card small {
    color: #8092aa;
    font-size: 12px;
}

.wm-overview-card .wm-green {
    color: #54e5a7;
}

.wm-overview-card .wm-red {
    color: #ff7585;
}

.wm-overview-card .wm-yellow {
    color: #f4c66b;
}

.wm-overview-footer {
    border-top: 1px solid #293b53;
    margin-top: 20px;
    padding-top: 15px;
    color: #8293aa;
    font-size: 12px;
}

@media(max-width: 700px) {
    .wm-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wm-overview-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media(max-width: 380px) {
    .wm-overview-grid {
        grid-template-columns: 1fr;
    }
}
/* Handmatig verversen */

.wm-refresh-button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 17px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wm-refresh-button:hover {
    background: #1d4ed8;
}

.wm-refresh-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.wm-overview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #293b53;
    margin-top: 20px;
    padding-top: 15px;
    color: #8293aa;
    font-size: 12px;
}

.wm-overview-footer strong {
    color: #54e5a7;
}

@media(max-width: 500px) {
    .wm-overview-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .wm-refresh-button {
        width: 100%;
    }
}
/* Monitor lijst */

.wm-monitor-list {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #293b53;
}

.wm-monitor-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.wm-monitor-list-header h3 {
    color: #fff;
    margin: 0 0 5px;
    font-size: 19px;
}

.wm-monitor-list-header p {
    color: #91a2b9;
    margin: 0;
    font-size: 13px;
}

.wm-monitor-list-header button {
    background: #2563eb;
    color: #fff;
    border: 0;
    padding: 10px 15px;
    border-radius: 7px;
    cursor: pointer;
}

.wm-monitor-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.wm-monitor-table {
    width: 100%;
    border-collapse: collapse;
    color: #edf3fc;
    min-width: 650px;
}

.wm-monitor-table th {
    color: #91a2b9;
    font-size: 12px;
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #293b53;
}

.wm-monitor-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #293b53;
    font-size: 13px;
}

.wm-monitor-table td strong,
.wm-monitor-table td small {
    display: block;
}

.wm-monitor-table td small {
    color: #91a2b9;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.wm-monitor-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

.wm-monitor-status.online {
    color: #54e5a7;
    background: #123e30;
}

.wm-monitor-status.offline {
    color: #ff8995;
    background: #54232b;
}

.wm-monitor-status.unknown {
    color: #cbd5e1;
    background: #354257;
}

@media(max-width: 600px) {
    .wm-monitor-list-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Individuele monitor verversknop */

.wm-single-monitor .wmw-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wm-single-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #2563eb !important;
    color: #ffffff !important;

    border: 1px solid #2563eb !important;
    border-radius: 8px !important;

    padding: 10px 16px !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    cursor: pointer;
    transition: background 0.2s ease;
}

.wm-single-refresh:hover {
    background: #1d4ed8 !important;
}

.wm-single-refresh:disabled {
    opacity: 0.6;
    cursor: wait;
}

.wm-single-message {
    margin-top: 10px;
    font-size: 12px;
    color: #91a2b9;
}

.wm-single-monitor .wmw-dot.online {
    background: #16a34a;
}

.wm-single-monitor .wmw-dot.offline {
    background: #dc2626;
}

.wm-single-monitor .wmw-dot.unknown {
    background: #9ca3af;
}