body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ===== PENGATURAN TABEL  ===== */
.isi.konten {
    padding: 0.5em;
    text-align: center;
    padding-top: 100px;
}

.isi-konten h1 {
    width: 50%;
    margin: 0 auto 15px auto;
    text-align: left;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 22px;
    color: #333;
}

table {
    width: 50%;
    border-collapse: collapse;
    margin: 0 auto;
}

th, td {
    border: 1px solid #444;
    padding: 0.5em; 
    text-align: center;
}


th {
    background-color: #002b6a; 
    color: white;           
    font-weight: bold;      
    text-transform: capitalize;
}

tbody tr:nth-child(even) {
    background-color: #F2F2F2;
}

table img {
    width: 60px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
}

/* ===== PENGATURAN FORM ===== */

.isi-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5em;
    background-color: #ffffff;
}

.isi-form h1 {
    width: 60%;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
}

form {
    width: 60%;
    padding: 20px;
    background-color: #F2F2F2;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

label {
    display: inline-block;
    width: 15%;
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
}

input[type="number"],
input[type="text"],
input[type="date"],
input[type="file"] {
    width: 80%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

input[type="submit"] {
    display: block;
    margin-top: 10px;
    padding: 12px 20px;
    border: none;
    background-color: #002b6a;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    cursor: pointer;
    background-color: #023a61;
}

/* ===== PENGATURAN HEADER & NAVIGASI ===== */
header {
    background-color: #002b6a;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px;
    z-index: 1000;
}

header img {
    height: 50px;
    width: auto;
    float: left;
    margin-top: 5px;
    margin-left: 12%;
}

.judulweb {
    color: #ffffff;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: 20px;
    text-align: left;
    float: left;
    padding: 18px 0 0 20px;
}

nav {
    margin-left: 58%;
}

nav a {
    float: left;
    display: block;
    line-height: 60px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    padding: 0 20px;
    text-decoration: none;
}

nav a:hover {
    background-color: #cccccc;
    color: #000000;
}

nav a.active {
    background-color: #F2F2F2;
    color: #000000;
}

/* ===== PENGATURAN GALERI ===== */


.galeri h1{
    width: 100%;
    margin: 0 auto 15px auto;
    text-align: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #333;
}

main.galeri {
    margin-top: 0px;
    text-align: center;
    padding: 20px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.galeri-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.preview img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 4px;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px;
}

.thumbnails img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.thumbnails img:hover {
    opacity: 0.5;
}

td a{
    color: black;
    text-decoration: none;
}

td a:hover{
    color: #002b6a;
}

/* ===== PENGATURAN ERROR ===== */
#pesanError {
    display: none;
    background-color: #ffe6e6; 
    border: 1px solid #ff0000;    
    color: #ff0000;             
    padding: 5px;               
    margin-bottom: 10px;        
    border-radius: 4px;         
    font-family: Arial, sans-serif; 
    line-height: 1.5;           
    width: 62%;
}

/* ===== PENGATURAN FOOTER ===== */

footer.publikasi {
    margin-top: auto;
    margin-bottom: 0;
    background-color: #5b4c4c;
    color: #ffffff;
    padding: 5px;
    text-align: center;
    font-family: Arial, sans-serif;
    border: 2px solid #ffffff;
    outline: 1px solid #000000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

footer.publikasi p {
    margin: 0;
    line-height: 1.6;
}

/* ===== PENGATURAN HALAMAN LOGIN ===== */

body.login-page {
    padding-top: 0 !important;
    flex-direction: row !important;
    min-height: 100vh !important;
    background: linear-gradient(135deg, #003580 0%, #0057b8 50%, #1a7fd4 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-card form {
    width: 100% !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header img {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    float: none;
    margin-left: 0;
    margin-top: 0;
}

.login-header h1 {
    font-size: 15px;
    font-weight: 700;
    color: #003580;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.login-header p {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.login-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0 0 28px 0;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-group label {
    display: block !important;
    width: auto !important;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
}

.login-card .form-group input[type="text"],
.login-card .form-group input[type="password"] {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 14px;
    color: #333;
    background: #fafafa !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

.login-card .form-group input[type="text"]:focus,
.login-card .form-group input[type="password"]:focus {
    border-color: #0057b8 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.12);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #003580, #0057b8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
}

.btn-login:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 11.5px;
    color: #aaa;
}