:root {
    --primary-color: #f26522;   /* Oranye terang */
    --hover-color: #c24e1a;     /* Oranye gelap untuk hover */
    --text-color: #3a2f2f;      /* Coklat tua */
}

/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fef6ed; /* Krem terang */
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.site-header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.header-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.header-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content h1 {
    font-size: 3rem;
    margin: 0;
}

/* Filter dan Pencarian */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-item {
    display: flex;
    align-items: center;
    max-width: 300px;
}

.filter-item input,
.filter-item select {
    padding: 8px;
    font-size: 1rem;
    width: 200px;
    box-sizing: border-box;
}

.filter-item button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 5px;
}

.filter-item button:hover {
    background-color: var(--hover-color);
}

/* Total Artikel */
.total-articles {
    text-align: right;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Daftar Artikel */
.articles-section {
    margin-top: 30px;
}

.articles-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.articles-table thead {
    background-color: var(--primary-color);
    color: white;
}

.articles-table th,
.articles-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
}

.articles-table tbody tr:hover {
    background-color: #fdf2e9;
}

.readmore {
    color: var(--primary-color);
    text-decoration: none;
}

.readmore:hover {
    text-decoration: underline;
}

.cover-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.cover-img:hover {
    transform: scale(1.1);
}

.article-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a,
.btn,
.filter-item button {
    text-decoration: none;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover,
.btn:hover,
.filter-item button:hover {
    background-color: var(--hover-color);
}

.pagination .current {
    padding: 10px 20px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 5px;
}

/* Tombol Tambah & Edit Artikel */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-container {
    display: flex;
    gap: 20px;
}

.btn i {
    margin-right: 8px;
}

/* Halaman Tambah Artikel */
.add-article-container {
    max-width: 700px;
    margin: 100px auto;
    padding: 40px;
    background: var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
}

.add-article-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-article-container label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    text-align: left;
    font-size: 16px;
    color: white;
}

.add-article-container input,
.add-article-container textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    background-color: white;
    color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.add-article-container input:focus,
.add-article-container textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(242, 101, 34, 0.4);
    outline: none;
}

.add-article-container textarea {
    resize: vertical;
    height: 180px;
}

.add-article-container input[type="submit"] {
    background-color: var(--hover-color);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 25px;
    margin-top: 20px;
    border-radius: 25px;
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}

.add-article-container input[type="submit"]:hover {
    background-color: #ffddb0;
    color: #3a2f2f;
    transform: translateY(-2px);
}

.add-article-container a {
    display: block;
    margin-top: 30px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

.add-article-container a:hover {
    text-decoration: underline;
}

/* Responsif */
@media screen and (max-width: 768px) {
    .filters {
        flex-direction: column;
        padding: 0 15px;
    }

    .total-articles {
        text-align: center;
        padding: 0 15px;
    }

    .articles-table th,
    .articles-table td {
        font-size: 0.9rem;
    }

    .articles-table th:nth-child(4),
    .articles-table td:nth-child(4) {
        display: none;
    }

    .pagination {
        font-size: 0.9rem;
    }

    .login-container {
        width: 90%;
        padding: 25px;
    }

    .action-buttons {
        justify-content: center;
    }
}

/* Login Page Styling */
.login-page {
    background: linear-gradient(135deg, #f26522 0%, #ffb47b 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.login-container h2 {
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
}

.login-container .form-label {
    font-weight: 600;
    color: #3a2f2f;
}

.login-container .form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px 12px;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: var(--hover-color);
}

.login-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.login-container a:hover {
    text-decoration: underline;
}

.alert {
    font-size: 0.95rem;
    padding: 10px;
    margin-bottom: 20px;
}
.button-group {
    margin-top: 20px;
}

.button-group a.button {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button-group a.button:hover {
    background-color: #0056b3;
}
body {
    background: #f7f9fc;
    font-family: 'Segoe UI', sans-serif;
}

.change-password-container {
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.change-password-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.change-password-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.change-password-container input[type="password"],
.change-password-container input[type="submit"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.change-password-container input[type="submit"] {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.change-password-container input[type="submit"]:hover {
    background-color: #0056b3;
}

.message {
    background: #e9f0fe;
    padding: 12px;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
    color: #333;
    border-radius: 5px;
}

.button-group {
    text-align: center;
}

.button-group a.button {
    display: inline-block;
    padding: 10px 16px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transitio

.article-content {
    text-align: justify;
}
