body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f7fa;
    color: #222;
    font-size: 14px;
}

.login {
    width: 90%;
    max-width: 320px;
    margin: 80px auto;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.boxed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #2c3e50;
}

.logout-btn {
    padding: 6px 12px;
    background: #f1c40f;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #d4ac0d;
}

.content {
    padding: 15px;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.4em;
}

.dashboard-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats, .generator {
    flex: 1;
    min-width: 180px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats h3, .generator h3 {
    margin-top: 0;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1em;
}

.generator input[type="range"] {
    width: 100%;
}

.generator input[type="text"] {
    margin-top: 8px;
    background: #ecf0f1;
}

.server-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 5px solid #2ecc71; /* Hijau cerah untuk Server */
}

.domain-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db; /* Biru untuk Domains */
}

.table-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 0.85em;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
}

.action-btn:hover {
    background: #3267d6;
}

.table-wrapper {
    overflow-x: auto; /* Scrollable horizontal pada layar kecil */
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    min-width: 800px; /* Pastikan tabel punya lebar minimum */
}

th, td {
    padding: 6px;
    text-align: left;
    font-size: 0.85em;
}

th {
    background: #4285f4;
    color: #fff;
    font-weight: 700;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

input, textarea, button {
    margin: 4px 0;
    padding: 6px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.85em;
}

button {
    background: #4285f4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #3267d6;
}

.delete-btn {
    background: #e74c3c;
}

.delete-btn:hover {
    background: #c0392b;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: #fff;
    margin: 40px auto;
    padding: 15px;
    width: 90%;
    max-width: 500px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.close {
    float: right;
    cursor: pointer;
    font-size: 1.2em;
    color: #e74c3c;
}

.modal-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-col {
    flex: 1;
    min-width: 180px;
}

.form-row {
    width: 100%;
}

.button-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-start;
}

.button-row button {
    padding: 6px 12px;
    font-size: 0.85em;
}

.form-col label {
    display: block;
    margin: 4px 0 2px;
    font-weight: 700;
    font-size: 0.85em;
}

.full-width {
    width: 100%;
    margin-top: 8px;
}

.password-wrapper {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.pagination {
    margin-top: 10px;
    text-align: center;
}

.pagination a {
    margin: 0 8px;
    padding: 5px 10px;
    text-decoration: none;
    color: #fff;
    background: #4285f4;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #3267d6;
}

@media (max-width: 768px) {
    .boxed-container {
        padding: 10px;
    }
    .content {
        padding: 10px;
    }
    .dashboard-grid {
        flex-direction: column;
    }
    .header h1 {
        font-size: 1.5em;
    }
    .logout-btn {
        padding: 5px 10px;
        font-size: 0.9em;
    }
    .table-wrapper {
        overflow-x: auto; /* Aktifkan scroll horizontal pada layar kecil */
    }
}