/* assets/style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1000px; /* Lebar maksimal di PC */
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Desain Form (Login / Register) */
.form-box {
    max-width: 400px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

input, select, button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px; /* Mencegah auto-zoom di Safari HP */
}

button {
    background: #007bff;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #0056b3;
}

/* Desain Grid Modul untuk Dashboard (Otomatis Susun di HP & PC) */
.grid-modul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.card-modul {
    background: #fff;
    border: 1px solid #e3e6f0;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.card-modul:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Tabel Responsif untuk PC/HP (Admin & Dashboard) */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Biar bisa di-geser/scroll ke samping kalau di layar HP */
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Menjaga teks tabel tidak gepeng di HP */
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th { background-color: #f8f9fc; }

/* Label Badge Status */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}
.badge-free { background: #e2e3e5; color: #383d41; }
.badge-premium { background: #d4edda; color: #155724; }
