/* ===== BODY DAN STRUKTUR DASAR ===== */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

main {
    padding: 20px;
}

/* ===== HEADER & FOOTER ===== */
header, footer {
    background-color: maroon;
    color: white;
    padding: 5px 10px;
}
.landing{
    justify-content: center;
}

/* =============LOGIN ===============*/
.login-container {
    max-width: 320px;
    margin: 40px auto;
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 10px 10px 4px rgba(0,0,0,0.7);
}

.login-container h2 {
    text-align: center;
}

.login-container form {
    display: flex;
    flex-direction: column;  /* ⬅️ Susun vertikal */
    align-items: flex-start; /* ⬅️ Label dan input rata kiri */
}

.login-container label {
    margin-top: 10px;
    font-weight: bold;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 25ch;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container input[type="submit"] {
    margin-top: 16px;
    padding: 8px 12px;
    background-color: maroon;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    justify-content: center;
}

.login-container input[type="submit"]:hover {
    background-color: #800000;
    justify-content: center;
}


footer {
    text-align: center;
}

/* ===== HEADER DUA KOLOM ===== */
.header-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
}

.header-left {
    flex: 0 0 30%;
}

.logo {
    max-width: 100px;
    height: auto;
}

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.judul-besar {
    font-size: 48px;
    margin: 0;
    font-weight: bold;
    text-align: left;
}

.alamat {
    font-size: 16px;
    margin: 5px 0 0 0;
    text-align: left;
}

/* ===== LINK & FLASH MESSAGE ===== */
a {
    color: #003366;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.flash-messages {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    background-color: #ffffcc;
    border: 1px solid #cccc66;
    color: #333;
}

.flash-messages li {
    padding: 10px;
}

/* ===== FORM DAN INPUT ===== */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
select {
    padding: 8px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"],
button {
    background-color: #003366;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover {
    background-color: #005599;
}

/* ===== LANDING PAGE ===== */
.landing {
    /*text-align: center; */
    padding: 10px 0px; 
    margin-left: 350px;
}

.btn {
    display: inline-block;
    background-color: maroon;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.btn:hover {
    background-color: #005599;
}

/* ===== TABEL ===== */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background-color: white;
}

table, th, td {
    border: 1px solid #999;
}

th, td {
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #eee;
}
/* MENU */
.nav-bar {
    background-color: maroon;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    width: 100%;
    max-width: 100%;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: white;
}

.nav-left {
    width: 20%;
}

.nav-center {
    width: 60%;
    justify-content: center;
}

.nav-right {
    width: 20%;
    justify-content: flex-end;
    padding-right: 20px;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;            /* Bikin horizontal */
    gap: 15px;                /* Jarak antar item */
    align-items: center;
    justify-content: center;
    background-color: maroon;
}

.menu li {
    background: maroon;
    padding: 0  5px;
    border-radius: 4px;
   
}

.menu li a {
    text-decoration: none;
    color: white;
    font-weight: normal;
    padding: 0;
    margin: 0;
}

.menu li a:hover {
    text-decoration: underline;
    background-color: transparent;
}

.user-info {
    font-weight: bold;
    color: white;
}

/* +++++++++++++++++++++++++++++++++++dashboard++++++++++++++++++*/
.dashboard-container {
    display: flex;
    gap: 30px;
    margin-top: 0px;
}

.sidebar {
    width: 20%;
    background-color: #f4f4f4;
    padding: 5px;
/*    border-radius: 6px; */
/*    box-shadow: 0 0 5px rgba(0,0,0,0.1);*/
}
.sidedashboard{
    width: 100%;
    box-shadow: 8px 8px 5px rgba(0,0,0,0.5);
    background-color: #grey;
    padding: 5px;
}	

.sidebar h3 {
    margin-top: 0;
}

.sidebar ul {
    list-style-type: none;
    padding-left: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
    margin-left: 15px;
    pargin-top: 5px;
}

.sidebar ul li a {
    color: #003366;
    font-weight: bold;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.dashboard-content {
    width: 70%;
}
/* ===== TABEL KHUSUS LEBAR ===== */
th.wide, td.wide {
    width: 20%;
    word-wrap: break-word;
}

@media screen and (max-width: 768px) {
    table {
        font-size: 14px;
    }
    th, td {
        padding: 6px;
    }
}

