.app-container { max-width: 1000px; margin: 15px auto; font-family: 'Sarabun', sans-serif; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.main-header { display: flex; justify-content: space-between; align-items: center; background: #1a2a6c; color: white; padding: 20px; border-bottom: 5px solid #e74c3c; }
.main-header h1 { margin: 0; font-size: 1.3rem; color: #fff; }
.logo-section p { margin: 5px 0 0 0; font-size: 0.85rem; color: #ffcc00; }

.refresh-button { background-color: #e74c3c; color: white; border: none; padding: 10px 25px; border-radius: 25px; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.refresh-button:hover { background-color: #c0392b; transform: translateY(-2px); }

.content-area { padding: 0; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; background-color: #f8f9fa; padding: 15px; border-bottom: 2px solid #dee2e6; color: #333; }
td { padding: 15px; border-bottom: 1px solid #eee; }

.mag-tag { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; font-weight: bold; color: white; font-size: 1.1rem; box-shadow: 0 3px 5px rgba(0,0,0,0.1); }
.level-low { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.level-mid { background: linear-gradient(135deg, #f39c12, #d35400); }
.level-high { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.detail-link { display: inline-block; padding: 7px 18px; background-color: #3498db; color: white; text-decoration: none; border-radius: 20px; font-size: 0.85rem; font-weight: bold; transition: 0.2s; }
.detail-link:hover { background-color: #2980b9; }

.main-footer { text-align: center; padding: 20px; background: #f8f9fa; font-size: 0.9rem; border-top: 1px solid #eee; color: #666; }
.main-footer a { color: #2980b9; text-decoration: none; font-weight: bold; }

@media screen and (max-width: 600px) {
    .main-header { flex-direction: column; text-align: center; padding: 15px; }
    .refresh-button { margin-top: 15px; width: 100%; }
    th:nth-child(3), td:nth-child(3) { display: none; } 
}