/* ===== GLOBAL ===== */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #eef3f7, #f8fbfd);
    margin: 0;
    color: #1f2d3d;
}

/* ===== HEADER ===== */
/* ===== HEADER FIX ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Logo container */
.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LEFT LOGO (static) */
.logo-static {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* RIGHT LOGO (rotating bin) */
.logo-rotating {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    animation: spin 6s linear infinite;
}

/* Title alignment */
.title-group {
    flex: 1;
    text-align: center;
}

.title-group h1 {
    margin: 0;
    font-size: 20px;
}

.subtitle {
    font-size: 12px;
    color: #777;
}

/* ===== DARK MODE BASE ===== */
body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

/* Cards */
body.dark .card,
body.dark .chart-container,
body.dark table {
    background: #1e293b;
    color: #e2e8f0;
}

/* Table */
body.dark th {
    background: #0aa2c0;
}
body.dark tr:nth-child(even) {
    background: #1a2435;
}

/* Header */
body.dark .header {
    background: #1e293b;
}

/* Button */
.theme-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* Smooth transition */
body, .card, table {
    transition: all 0.3s ease;
}

/* ===== STATUS BAR ===== */
.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 40px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: orange;
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 40px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 14px;
    color: #777;
}

.card p {
    font-size: 28px;
    margin: 10px 0;
    font-weight: bold;
}

/* Status Colors */
.status-normal { color: #0aa2c0; }
.status-full { color: orange; }
.status-over { color: red; }
.status-empty { color: gray; }

/* ===== CONTROLS ===== */
.controls {
    display: flex;
    justify-content: space-between;
    padding: 0 40px 20px;
    gap: 10px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    margin-left: 10px;
}

.btn-download {
    background: #0aa2c0;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-download:hover {
    background: #0889a5;
}

/* ===== CHART ===== */
.chart-container {
    margin: 20px 40px;
    background: white;
    padding: 20px;
    border-radius: 14px;
}

/* ===== TABLE ===== */
.table-section {
    margin: 20px 40px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #0aa2c0;
    color: white;
    padding: 12px;
}

td {
    padding: 10px;
}

tr:nth-child(even) {
    background: #f4f7f9;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #777;
}