body {
    background-color: #fffdf9;
    font-family: 'Comic Sans MS', 'Inter', cursive, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.sticky-top-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.8);
}

.card,
.table-container {
    border: 3px solid #000;
    border-radius: 25px 8px 25px 8px / 8px 25px 8px 25px;
    box-shadow: 4px 4px 0px #000;
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
}

.badge-sketchy {
    font-size: 0.85rem;
    padding: 0.4em 0.75em;
    border: 2px solid #000;
    border-radius: 12px 4px 12px 4px / 4px 12px 4px 12px;
    font-weight: bold;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: #198754;
    border-radius: 50%;
    border: 2px solid #000;
    display: inline-block;
    animation: pulse 2s infinite;
}

.pulse-dot.offline {
    background-color: #dc3545;
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    70% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

footer {
    border-top: 3px solid #000;
    background-color: #f8f9fa;
}

/* DataTables Sketchy Customizations & Readability Fixes */
div.dt-buttons .btn {
    border: 2px solid #000 !important;
    border-radius: 15px 5px 15px 5px / 5px 15px 5px 15px !important;
    box-shadow: 2px 2px 0px #000 !important;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.dataTables_filter input,
.dataTables_length select {
    border: 2px solid #000 !important;
    border-radius: 10px 4px 10px 4px / 4px 10px 4px 10px !important;
    padding: 0.375rem 0.75rem;
    outline: none;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 0.5rem;
}

table.dataTable tbody tr {
    border: 2px solid #000;
    background-color: #ffffff;
    transition: all 0.15s ease-in-out;
}

table.dataTable tbody tr:hover {
    background-color: #f1f8ff !important;
    transform: translateY(-1px);
}

table.dataTable.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: #fdfbf7;
    color: inherit;
}

.page-item .page-link {
    border: 2px solid #000 !important;
    color: #000 !important;
    margin: 0 2px;
    border-radius: 8px !important;
}

.page-item.active .page-link {
    background-color: #333 !important;
    color: #fff !important;
}

.text-profit {
    color: #198754 !important;
    font-weight: 800;
}

.text-loss {
    color: #dc3545 !important;
    font-weight: 800;
}

.sketchy-list-group .list-group-item {
    border: 2px solid #000;
    margin-bottom: 0.5rem;
    border-radius: 10px !important;
    box-shadow: 2px 2px 0px #000;
    font-weight: bold;
}