/* Font modern */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    margin:0;
    padding:0;
    font-family: 'Roboto', sans-serif;
    background:#f5f6f7;
    color:#333;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Heading */
h2 {
    text-align:center;
    margin-bottom: 25px;
    color: #1877f2; /* Facebook blue */
}

/* Form input */
input[type=text], input[type=password] {
    width:100%;
    padding:10px 5px;
    margin:6px 0 14px 0;
    border-radius:6px;
    border:1px solid #ccd0d5;
    background:#fff;
    font-size:14px;
}

input:focus {
    border-color:#1877f2;
    outline:none;
    box-shadow:0 0 4px rgba(24,119,242,0.3);
}

/* Buttons */
button, .backup-button, .action-btn {
    font-family:'Roboto', sans-serif;
    padding:8px 16px;
    border-radius:6px;
    margin-right: 8px;
    border:none;
    cursor:pointer;
    font-size:14px;
    font-weight:500;
    transition:0.2s;
    text-decoration:none;
}

button, .action-btn {
    background:#1877f2;
    color:#fff;
}

button:hover, .action-btn:hover {
    background:#145dbf;
}

.backup-button {
    background:#e4e6eb;
    color:#050505;
    border:1px solid #ccd0d5;
}

.backup-button:hover {
    background:#d8dadf;
}

/* Delete button */
.delete-btn {
    background:#f02849;
    color:#fff;
    border:1px solid #f02849;
}

.delete-btn:hover {
    background:#c21c3a;
}

/* Table */
table {
    width:100%;
    border-collapse:collapse;
    font-size:14px;
    margin-top:14px;
}

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

th {
    background:#f0f2f5;
    font-weight:500;
    color:#050505;
}

tr:hover {
    background:#f0f2f5;
}

/* Textarea for script */
textarea {
    width:100%;
    padding:12px;
    border:1px solid #ccd0d5;
    border-radius:6px;
    font-family:'Courier New', monospace;
    font-size:14px;
    resize:vertical;
}

/* Copy script button */
.copy-btn {
    background:#42b72a;
    border:1px solid #42b72a;
    color:#fff;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
    font-weight:500;
}

.copy-btn:hover {
    background:#36a420;
}

@media(max-width:600px) {
    table, thead, tbody, th, td, tr {display:block;}
    thead{display:none;}
    tr {
        margin-bottom:12px;
        border-radius:6px;
        padding:10px;
        background:#fff;
        box-shadow:0 1px 3px rgba(0,0,0,0.05);
    }
    td {
        display:flex;
        flex-direction: column; /* jadikan vertikal supaya tombol rapi */
        padding:6px 0;
    }
    td::before {
        content:attr(data-label);
        font-weight:500;
        color:#1877f2;
        margin-bottom:4px;
    }

    /* Tombol aksi full width & jarak antar tombol */
    .action-btn, .delete-btn {
        display:block;
        width:100%;
        margin:4px 0;
        text-align:center;
        padding:6px 0;
        font-size:13px;
    }

    /* Jika ada tombol Kembali & Tambah */
    div[style*="display:flex"] {
        flex-direction:column;
        gap:6px;
        margin-bottom:10px;
    }
}
