:root {
    --bg-color: #121212;
    --surface-color: #1E1E1E;
    --gold: #D4AF37;
    --gold-light: #F9E076;
    --text-main: #FFFFFF;
    --text-muted: #B3B3B3;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* ================================ */
/* STYLING HALAMAN LOGIN            */
/* ================================ */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    width: 100%;
    max-width: 350px;
    border-top: 3px solid var(--gold);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--gold);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    transition: 0.3s;
}

.login-btn:hover {
    background-color: var(--gold-light);
}

/* ================================ */
/* STYLING DASHBOARD ADMIN          */
/* ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--gold);
}

.logo span {
    color: var(--text-main);
    font-weight: 300;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.connected { background-color: #4CAF50; box-shadow: 0 0 8px #4CAF50; }
.disconnected { background-color: #F44336; box-shadow: 0 0 8px #F44336; }

.logout-btn {
    background-color: transparent;
    border: 1px solid #F44336;
    color: #F44336;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.logout-btn:hover {
    background-color: #F44336;
    color: white;
}

h2 {
    color: var(--gold-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.table-container {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

th {
    background-color: #2A2A2A;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

tbody tr {
    transition: background-color 0.3s;
}

tbody tr:hover {
    background-color: #2A2A2A;
}

.status-badge {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid var(--gold);
}

.new-row {
    animation: flashGold 1.5s ease-out;
}

@keyframes flashGold {
    0% { background-color: rgba(212, 175, 55, 0.4); }
    100% { background-color: transparent; }
}