/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
}

/* Login Styles */
#login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(45deg, #4e73df, #1e3c72);
    position: absolute;
    width: 100%;
    animation: fadeInLogin 1s ease-in-out;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    animation: slideUp 0.5s ease;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4e73df;
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: #4e73df;
}

button {
    padding: 12px;
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2e59d9;
}

/* Admin Dashboard */
#admin-dashboard {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 20px auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    animation: slideIn 1s ease;
}

.hidden {
    display: none;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

header nav a {
    text-decoration: none;
    color: #4e73df;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #2e59d9;
}

.logout-btn {
    background-color: #e74a3b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* Manajemen Pengguna */
#user-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

#user-table th, #user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#user-table th {
    background-color: #f0f2f5;
}

/* Berita */
#news-form {
    margin-bottom: 20px;
}

#news-list {
    margin-top: 30px;
}

#news-items {
    margin-top: 10px;
}

.news-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.news-item img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.news-item p {
    color: #666;
}

/* Animations */
@keyframes fadeInLogin {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(50%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}
