/* assets/style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
header.page-header-bar { /* Untuk halaman edit/adcode */
    margin-bottom: 25px;
}
.page-title-section {
    display: flex;
    align-items: center;
}
.page-title-section .btn-back-header {
    margin-right: 15px;
    font-size: 0.9em;
}


header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #2c3e50;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e9ecef;
    color: #343a40;
    border: 1px solid #ced4da;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.btn:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-logout {
    font-size: 0.85em;
    background-color: #f8f9fa;
}
.btn-logout:hover {
    background-color: #e2e6ea;
}


.actions-bar {
    margin-bottom: 20px;
    text-align: right;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table th, table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}
table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.95em;
}
table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}
table tbody tr:hover {
    background-color: #f1f1f1;
}

td.actions .btn-sm {
    padding: 5px 10px;
    font-size: 0.8em;
    margin-right: 5px;
}
td.actions .btn-sm:last-child {
    margin-right: 0;
}
.btn-manage {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}
.btn-manage:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
.btn-delete {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}
.btn-delete:hover {
    background-color: #c82333;
    border-color: #bd2130;
}


/* Login Form */
.login-container {
    width: 100%;
    max-width: 380px;
    margin: 60px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}
.login-container .form-group, /* Class dari form config, bisa dipakai ulang */
.login-container div {
    margin-bottom: 15px;
}
.login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9em;
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}
.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.login-container .btn {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 4px;
}
.message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.95em;
    border: 1px solid transparent;
}
.message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.message.info {
    background-color: #cce5ff;
    border-color: #b8daff;
    color: #004085;
}
.flash-message { /* Untuk pesan yang muncul sekali */
    animation: fadeOut 5s forwards;
}
@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; } /* Tahan selama beberapa detik */
    100% { opacity: 0; display:none; /* Tambahkan display none agar tidak mengambil ruang */}
}


/* Config Form */
.config-form .form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}
.config-form .form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.config-form h3 {
    font-size: 1.3em;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
}
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: inherit;
}
.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.form-group p.description {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 5px;
    line-height: 1.5;
}
.form-actions {
    margin-top: 30px;
    text-align: right;
}
.btn-save {
    padding: 10px 25px;
    font-size: 1em;
}

/* Ad Code Page */
.ad-code-section h3 {
    margin-top: 0;
}
.ad-code-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.95em;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    resize: vertical;
}
.btn-copy-code {
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}
.btn-copy-code:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* --- App Header & Footer --- */
.app-header {
    background-color: #2c3e50; /* Warna biru tua yang elegan */
    color: #ecf0f1; /* Warna teks terang yang kontras */
    padding: 20px 25px;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 4px solid #3498db; /* Aksen biru cerah */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.app-header h1 {
    margin: 0 0 8px 0;
    font-size: 2.2em;
    font-weight: 600;
    color: #ffffff; /* Pastikan warna h1 di app-header adalah putih */
}
.app-header p {
    margin: 0;
    font-size: 1em;
    color: #bdc3c7; /* Abu-abu terang untuk deskripsi */
    line-height: 1.4;
}

.app-footer {
    background-color: #34495e; /* Warna abu-biru tua */
    color: #bdc3c7; /* Teks abu-abu terang umum di footer, link akan di-override di bawah */
    padding: 20px 25px;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #46627f; /* Garis batas yang halus */
    font-size: 0.9em;
}
.app-footer p {
    margin: 0;
    /* Tidak perlu 'color' di sini jika semua teks dalam <p> harus mengikuti .app-footer
       atau jika sebagian teks (seperti link) akan memiliki warna sendiri. */
}

/* Style untuk hyperlink di dalam .app-footer */
.app-footer a,
.app-footer a:link,
.app-footer a:visited {
    color: #FDD663;    /* Warna kuning untuk link */
    text-decoration: none; /* Menghilangkan garis bawah standar */
}

.app-footer a:hover {   /* Saat kursor mouse di atas link */
    color: #FFFFE0;    /* Warna kuning yang sedikit lebih terang saat hover */
    text-decoration: underline; /* Menambahkan garis bawah saat hover */
}

.app-footer a:active {  /* Saat link sedang diklik */
    color: #FBC02D;    /* Warna kuning yang sedikit lebih gelap/menyala saat aktif */
}
/* --- End App Header & Footer --- */