* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

main {
    padding: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #457d8a 0%, #3d6b77 100%);
    color: white;
    padding: 50px 40px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 900px;
}

/* Data Section */
.data-section {
    padding: 40px;
}

.data-section h2 {
    color: #457d8a;
    font-size: 24px;
    margin-bottom: 25px;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #457d8a;
    color: white;
}

th {
    padding: 18px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: #f9fafb;
}

td {
    padding: 20px;
    font-size: 14px;
    color: #333;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.badge-steady {
    background: #d1fae5;
    color: #065f46;
}

.badge-rising {
    background: #fed7aa;
    color: #9a3412;
}

.badge-falling {
    background: #dbeafe;
    color: #1e40af;
}

/* Status */
.status {
    font-size: 14px;
    font-weight: 500;
}

.status-normal {
    color: #22c55e;
}

.status-danger {
    color: #dc2626;
}

.status-alert {
    color: #f97316;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.page-btn:hover {
    background: #f3f4f6;
}

.page-btn.active {
    background: #457d8a;
    color: white;
    border-color: #457d8a;
}

.pagination span {
    color: #999;
    padding: 0 5px;
}

/* Download Button */
.download-btn {
    background: #457d8a;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.download-btn:hover {
    background: #3d6b77;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 20px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .page-header p {
        font-size: 12px;
        font-weight: 100;
    }

    .data-section {
        padding: 30px 20px;
    }

    .data-section h2 {
        font-size: 20px;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 700px;
    }

    .table-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .download-btn {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 700px;
    }

    th,
    td {
        padding: 14px 16px;
        font-size: 13px;
    }
}