body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.header{
    height: 100px;
    margin: 5px 5px;
    border-radius: 8px;
    background-color: #023e7d;
}

.header h2 {
    font-size: 30px;
    color: white;
    text-align: center;
    line-height: 100px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header img {
    border-radius: 8px;
}


.menu {
    background-color: #0466c8;
    height: 50px;
    margin: 20px 10px;
    border-radius: 30PX;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 30PX;
    -moz-border-radius: 30PX;
    -ms-border-radius: 30PX;
    -o-border-radius: 30PX;
}

.menu ul li{
    float: left;
    justify-content: center;
    padding: 15px;
    list-style: none;
    text-transform:uppercase;
}

.menu ul li a {
    display:block;
    padding:0 20px;
    text-decoration:none;
    color:#ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size:13px;
    font-weight:400;
    transition:all 0.3s ease-in-out;
    -webkit-transition:all 0.3s ease-in-out;
    -moz-transition:all 0.3s ease-in-out;
    -ms-transition:all 0.3s ease-in-out;
    -o-transition:all 0.3s ease-in-out;
}

.menu ul li a:hover,
.menu ul li a.hoverover {
    cursor: pointer;
    color:#ffffff;
}


.bungkus{
    overflow:hidden;
    width: 100%;
}


.leftbar{
    background-color: rgb(231, 237, 245);
    width: 20%;
    float: left;
    height: auto;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leftbar h3 {
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.leftbar ul {
    list-style: none;
    padding: 0;
}

.leftbar ul li {
    margin-bottom: 10px;
}

.leftbar ul li a {
    text-decoration: none;
    color: #007BFF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: color 0.3s ease;
}

.leftbar ul li a:hover {
    color: #0056b3;
}

h1.data {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;
    text-transform: uppercase;
}

.rightbar {
    background-color: rgb(231, 237, 245);
    width: 20%;
    float: right;
    height: auto;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.rightbar h3 {
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.rightbar ul {
    list-style: none;
    padding: 0;
}

.rightbar ul li {
    margin-bottom: 10px;
}

.rightbar ul li a {
    text-decoration: none;
    color: #007BFF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: color 0.3s ease;
}

.rightbar ul li a:hover {
    color: #0056b3;
}

.berita {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-left: 30px;
    border-radius: 8px;
    width: 50%;
    float: left;
    padding: 20px;
    align-items: center;
}

.berita p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
    padding: 10px;
    border-left: 4px solid #023e7d;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.berita pre {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;

    text-align: justify;
    text-justify: inter-word;
    padding: 10px;
    border-left: 4px solid #023e7d;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.berita img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 8px;
}   

h1.data {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

.button-group {
    text-align: right;
    margin-bottom: 20px;
}

.modern-button {
    background-color: #007BFF; 
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif; 
    transition: background-color 0.3s ease;
}

.modern-button:hover {
    background-color: #0056b3;
}

table.Db {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    font-family: 'Roboto', sans-serif; 
}

table.Db thead {
    background-color: #0056b3;
    color: white;
}

table.Db th, table.Db td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table.Db th {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

table.Db td {
    color: #555;
}

table.Db tbody tr {
    transition: background-color 0.3s ease;
}

table.Db tbody tr:hover {
    background-color: #e9f2ff; 
}

table.Db tbody ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

table.Db tbody li {
    padding: 5px 0;
}

table.Db a {
    text-decoration: none;
    color: #007BFF; 
    transition: color 0.3s ease;
}

table.Db a:hover {
    color: #0056b3;
}

table.Db td[data-label="Actions"] a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 5px;
    color: white;
    background-color: #007BFF; 
    text-decoration: none;
    transition: background-color 0.3s ease;
}

table.Db td[data-label="Actions"] a:hover {
    background-color: #0056b3; 
}

table.Db td[data-label="Actions"] a:nth-child(1) {
    background-color: #28a745; 
}

table.Db td[data-label="Actions"] a:nth-child(1):hover {
    background-color: #218838;
}

table.Db td[data-label="Actions"] a:nth-child(2) {
    background-color: #dc3545; 
}

table.Db td[data-label="Actions"] a:nth-child(2):hover {
    background-color: #c82333; 
}

@media (max-width: 768px) {
    table.Db, table.Db thead, table.Db tbody, table.Db th, table.Db td, table.Db tr {
        display: block;
    }

    table.Db thead tr {
        display: none;
    }

    table.Db td {
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    table.Db td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-transform: uppercase;
        color: #333;
    }

    .button-group {
        text-align: center;
    }

    .modern-button {
        display: inline-block;
        margin-top: 10px;
    }
}

.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    width: 600px;
    margin: 50px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.data {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

table.from-db {
    width: 100%;
    border-spacing: 0;
}

table.from-db td {
    padding: 10px;
    vertical-align: middle;
}

label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    font-family: 'Roboto', sans-serif; 
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

select, input[type="datetime-local"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-top: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

button.tambah-buku, .hapus-buku {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button.hapus-buku {
    background-color: #dc3545;
}

button.tambah-buku:hover, button.hapus-buku:hover {
    opacity: 0.9;
}

button.modern-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
}

button.modern-button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .form-container {
        width: 100%;
        padding: 20px;
    }
}

.footer{
    background-color: #2C3E50;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 10px;
}
