body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff; /* AliceBlue */
    margin: 0;
    padding: 0;
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: #1e90ff; /* DodgerBlue */
    color: #fff;
    position: fixed;
    height: 100%;
    overflow: auto;
}

.sidebar h2 {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #4682b4; /* SteelBlue */
}

.sidebar a {
    display: block;
    color: #fff;
    padding: 15px;
    text-decoration: none;
    border-bottom: 1px solid #4682b4; /* SteelBlue */
}

.sidebar a:hover {
    background-color: #4169e1; /* RoyalBlue */
}

.content {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    background-color: #f0f8ff; /* AliceBlue */
}

.header {
    background-color: #1e90ff; /* DodgerBlue */
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: relative;
}

.header a {
    color: #fff;
    text-decoration: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.login-box {
    width: 300px;
    padding: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
    margin: 0 0 20px;
    padding: 0;
    color: #1e90ff; /* DodgerBlue */
}

.textbox {
    position: relative;
    margin-bottom: 30px;
}

.textbox input,
.textbox select {
    width: 100%;
    padding: 10px;
    background: #f2f2f2;
    border: 1px solid #1e90ff; /* DodgerBlue */
    outline: none;
    color: #333;
    font-size: 18px;
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: #1e90ff; /* DodgerBlue */
    border: none;
    outline: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

input[type="submit"]:hover {
    background: #4682b4; /* SteelBlue */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
}

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

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

th {
    background-color: #1e90ff; /* DodgerBlue */
    color: #fff;
}

.add-btn {
    display: inline-block;
    margin-bottom: 10px;
    padding: 10px 20px;
    background-color: #1e90ff; /* DodgerBlue */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.add-btn:hover {
    background-color: #4682b4; /* SteelBlue */
}

.cards {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 30%;
}

.card h3 {
    margin: 0 0 10px;
    color: #1e90ff; /* DodgerBlue */
}

.card p {
    font-size: 24px;
    margin: 0;
    color: #1e90ff;
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar a {float: left;}
    .content {margin-left: 0;}
    .cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 80%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 400px) {
    .sidebar a {
        text-align: center;
        float: none;
    }
}

.btn-delete {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-delete:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.btn-delete:active {
    background-color: #a80000;
    transform: scale(0.95);
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    width: 60%;
    /* Biar sejajar dengan konten tabel biasanya */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-container .textbox {
    margin-bottom: 15px;
}

.form-container input[type="text"],
.form-container input[type="date"],
.form-container input[type="number"],
.form-container select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.form-container input[type="submit"] {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #1e90ff;
    color: white;
    border: none;
    width: 100%;
}

.form-container input[type="submit"]:hover {
    background-color: #4169e1;
}