body {
    background: #0f0f0f;
    color: #eaeaea;
    font-family: Arial, sans-serif;
}

.card {
    background: #1a1a1a;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #2a2a2a;
}

input, select, button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #fff;
    margin-bottom: 10px;
}

button {
    background: #e0e0e0;
    cursor: pointer;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

table {
    border-collapse: collapse;
}

table th {
    background: #222;
    padding: 10px;
}

table td {
    padding: 8px;
    border-bottom: 1px solid #333;
}

table img {
    border-radius: 6px;
}

/* === LINK ADMIN (HILANGKAN BIRU & UNGU) === */
a {
    color: #f5c542;
    text-decoration: none;
}

a:hover {
    color: #ffd966;
    text-decoration: underline;
}

a:visited {
    color: #f5c542;
}

/* === FILTER === */
.filter-bar {
    margin: 15px 0;
}

.filter-bar span {
    margin-right: 10px;
    color: #aaa;
}

.filter-bar a {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #222;
    font-size: 13px;
}

/* === BADGE STATUS === */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-active {
    background: #2ecc71;
    color: #000;
}

.badge-inactive {
    background: #555;
    color: #bbb;
}

/* === CHECKBOX === */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-row label {
    cursor: pointer;
    color: #ddd;
    font-size: 14px;
}

/* =========================
   LOGIN PAGE
========================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #1a1a1a, #000);
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: #121212;
    border-radius: 16px;
    padding: 30px 26px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.login-box h2 {
    margin: 0;
    text-align: center;
    color: #f5c542;
}

.login-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-box label {
    font-size: 13px;
    color: #ccc;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #1f1f1f;
    color: #fff;
}

.login-box input:focus {
    outline: none;
    border-color: #f5c542;
}

.login-box button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg,#f5c542,#ff9800);
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.login-box button:hover {
    opacity: 0.9;
}

.login-error {
    background: #3a1c1c;
    color: #ffb3b3;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 14px;
    text-align: center;
    font-size: 13px;
}

/* =========================
   DASHBOARD
========================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.dash-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #2a2a2a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.dash-card h3 {
    margin: 0;
    font-size: 30px;
    color: #f5c542;
}

.dash-card p {
    margin-top: 6px;
    color: #aaa;
    font-size: 14px;
}

.dash-card.highlight {
    background: linear-gradient(135deg, #f5c542, #ff9800);
    color: #000;
}

.dash-card.highlight h3,
.dash-card.highlight p {
    color: #000;
}

/* =========================
   ADMIN HEADER
========================= */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0f0f0f;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
}

.admin-brand {
    font-size: 18px;
    color: #f5c542;
}

.admin-brand span {
    color: #aaa;
    margin-left: 4px;
    font-weight: normal;
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 8px 14px;
    border-radius: 20px;
    background: #1a1a1a;
    color: #ccc;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-nav a:hover {
    background: #2a2a2a;
    color: #fff;
}

.admin-nav a.active {
    background: linear-gradient(135deg,#f5c542,#ff9800);
    color: #000;
    font-weight: bold;
}

.admin-nav a.logout {
    background: #3a1c1c;
    color: #ffb3b3;
}

.admin-nav a.logout:hover {
    background: #522;
}

/* =========================
   ADMIN LAYOUT
========================= */
.admin-container {
    padding: 24px;
}

.admin-footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
}

/* FORM SCROLL */
.form-scroll{
    overflow-x:auto;
}

.form-inner{
    min-width:600px;
}

/* TABLE SCROLL */
.table-scroll{
    overflow-x:auto;
}

.table-scroll table{
    min-width:700px;
    border-collapse:collapse;
}

/* MOBILE FIX */
@media(max-width:768px){

.row{
    flex-direction:column;
}

.row > div{
    width:100%;
}

}
