body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
}

.header {
    background: #2c2c2c;
    padding: 20px;
    text-align: center;
}

.header h1 {
    color: white;
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.nav {
    background: #3a3a3a;
    padding: 10px 0;
    text-align: center;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
}

.nav a:hover {
    text-decoration: underline;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 30px;
}

.content img {
    width: 420px;
    height: auto;
    border-radius: 8px;
}

.text-box {
    width: 45%;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.text-box p {
    text-align: justify;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 18px; 
}

.btn-daftar {
    padding: 10px 18px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
}

.btn-daftar:hover {
    background: #555;
}

.btn-login {
    background: #d80617;
    padding: 6px 14px;
    border-radius: 5px;
    margin-left: 25px;
    font-weight: bold;
}

.btn-login:hover {
    background: #b71c1c;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
}

header {
    background: #2b3d52;
    padding: 15px 0;
    color: white;
}

header .container {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.btn-login {
    padding: 8px 15px;
    background: #FF9800;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.btn-login:hover {
    background: #e68900;
}

.hero {
    display: flex;
    width: 90%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    gap: 20px;
}

.hero img {
    width: 100%;
    border-radius: 10px;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1.3;
}

.hero-right h3 {
    margin-bottom: 10px;
}

.btn-daftar {
    display: inline-block;
    padding: 10px 18px;
    background: #2b3d52;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}
.btn-daftar:hover {
    background: #1e2c3d;
}

.form-container {
    width: 60%;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input,
form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #bbb;
    border-radius: 5px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #2b3d52;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
}
.btn-submit:hover {
    background: #1e2c3d;
}

.btn-kembali {
    display: block;
    margin-top: 15px;
    text-align: center;
    color: #2b3d52;
    text-decoration: none;
    font-weight: bold;
}
.btn-kembali:hover {
    text-decoration: underline;
}

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: white;
}

table th {
    background: #2b3d52;
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border: 1px solid #ccc;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

.btn-tambah {
    display: inline-block;
    margin: 20px 5%;
    padding: 10px 15px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.btn-tambah:hover {
    background: #3e8e41;
}

table a {
    color: #007BFF;
    text-decoration: none;
}
table a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .form-container {
        width: 90%;
    }

    header .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    nav a {
        margin: 0 8px;
    }
}




.action-header {
    display: flex;
    justify-content: center;
    gap: 0;       
    margin-top: 10px;
    margin-bottom: 5px;
}


.btn-tambah {
    background: #3498db;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-tambah:hover {
    opacity: 0.85;
}

.judul-halaman {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}


.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f4f4f4;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    text-align: center;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}
.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}
.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.error-msg {
    background: #ffdddd;
    padding: 10px;
    border-left: 4px solid #ff4d4d;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.link-back {
    display: block;
    margin-top: 15px;
    color: #555;
    text-decoration: none;
}
.link-back:hover {
    text-decoration: underline;
}

.login-card {
    max-width: 330px !important;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}












/* Reset & font */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 20px;
}

.btn-logout {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 10px;
    background: #c0392b;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.btn-logout:hover {
    background: #a93226;
}

/* Container */
.container {
    width: 95%;
    margin: 20px auto;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}

table th {
    background: #555;
    color: white;
}

table tr:nth-child(even) {
    background: #eee;
}

table a {
    color: #007BFF;
    text-decoration: none;
    font-size: 13px;
}

table a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 15px 0;
     background: #2c2c2c;
    color: white;
    margin-top: 30px;
}


@media (max-width: 768px) {
    table th, table td {
        font-size: 12px;
        padding: 6px;
    }

    header h1 {
        font-size: 18px;
    }

    .btn-logout {
        font-size: 12px;
        padding: 4px 8px;
    }
}
