Website-E-Bendungan/public/assets/css/style.css

523 lines
9.5 KiB
CSS

* {
font-family: 'Plus Jakarta Sans', sans-serif;
}
body {
background-color: #E7E7E7;
margin: 0;
display: flex;
min-height: 100vh;
}
/* Sidebar */
.sidebar {
width: 250px;
background-color: #2a8f47;
color: white;
padding: 20px;
justify-content: space-between;
}
.sidebar nav ul {
margin-top: 50px;
list-style: none;
padding: 0;
}
.sidebar nav ul li {
margin-bottom: 10px;
}
.sidebar nav ul li a {
display: flex;
align-items: center;
padding: 10px;
background-color: #2a8f47;
color: #EBFEF5;
text-decoration: none;
border-radius: 5px;
align-content: center;
}
.sidebar nav ul li a.active {
background-color: #EBFEF5;
color: #007C56;
}
.sidebar nav ul li a:hover {
background-color: #EBFEF5;
color: #007C56;
}
.sidebar nav ul li span {
margin-right: 20px;
}
.logout-btn {
pointer-events: painted;
position: fixed;
bottom: 20px;
left: 20px;
display: flex;
align-items: center;
padding: 10px 143px 10px 10px;
background-color: #00a76f;
color: white;
text-align: center;
border-radius: 5px;
text-decoration: none;
border: none;
font-size: 16px;
}
.logout-btn span {
margin-right: 20px;
}
.logout-btn:hover {
background-color: red;
}
.content {
flex: 1;
padding: 10px;
background-color: white;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
background-color: white;
border-radius: 5px;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.content-header {
display: flex;
color: #9F9F9F;
align-content: center;
}
/* Card */
.cards {
display: flex;
gap: 15px;
}
.card {
flex: 1;
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: start;
}
.content-card {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.card .number {
font-size: 50px;
margin-top: 10px;
align-self: start;
margin-bottom: 10px;
}
.content-card span {
padding: 10px;
border-radius: 6px;
color: white;
background-color: #379651;
}
/* Chart */
.chart-container {
margin-top: 10px;
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.title-chart {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0px 10px 0px 10px;
}
.years-chart select {
font-size: 16px;
font-weight: 400;
padding-left: 15px;
padding-right: 15px;
width: 100px;
cursor: pointer;
height: 40px;
appearance: none;
border: 1px solid #ccc;
border-radius: 6px;
}
.years-chart {
position: relative;
}
.years-chart .material-symbols-outlined {
display: block;
position: absolute;
align-content: center;
height: 100%;
top: 0;
right: 0;
padding-right: 10px;
pointer-events: none;
}
.chart {
width: 100%;
position: relative;
}
.chart::before,
.chart::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 10px;
}
.chart::before {
z-index: 1;
background-color: rgba(255, 255, 255, 0.2);
transform: translate(-30px, -30px);
}
.chart::after {
z-index: 2;
background-color: #ffffff;
}
.chart-content {
position: relative;
z-index: 3;
}
/* Tab Menu */
.content-table {
background-color: white;
padding: 15px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.tab-menu {
display: flex;
gap: 10px;
margin-bottom: 15px;
position: relative;
}
.tab-menu a {
padding: 15px 20px;
border: 1px solid #ccc;
cursor: pointer;
background-color: white;
border-radius: 100px;
color: #9F9F9F;
display: flex;
justify-content: center;
align-content: center;
gap: 10px;
text-decoration: none;
}
.notif {
background-color: #ff4d4d;
color: white;
font-size: 12px;
font-weight: bold;
display: block;
align-content: center;
padding: 5px;
align-items: center;
border-radius: 50%;
}
.tab-menu a.active {
background: #2a8f47;
color: white;
}
/* Search box */
.table-filter {
display: flex;
gap: 10px;
align-items: center;
justify-content: space-between;
width: 100%;
max-height: 50px;
}
.search-container {
font-size: 16px;
font-weight: 400;
display: flex;
align-items: center;
border: 1px solid #ccc;
border-radius: 5px;
padding-left: 15px;
padding-right: 15px;
background-color: white;
flex: 1;
height: 45px;
}
.search-container .material-symbols-outlined {
color: #9F9F9F;
}
.search-box {
border: none;
outline: none;
flex: 1;
}
/* Filter tanggal */
.filter-date input {
font-size: 16px;
font-weight: 400;
padding-left: 15px;
padding-right: 15px;
border: 1px solid #ccc;
border-radius: 6px;
background-color: white;
height: 45px;
}
/* Filter Status */
.filter-status select {
font-size: 16px;
font-weight: 400;
padding-left: 15px;
padding-right: 35px;
width: 100%;
cursor: pointer;
height: 45px;
appearance: none;
border: 1px solid #ccc;
border-radius: 6px;
}
.filter-status {
position: relative;
}
.filter-status .material-symbols-outlined {
display: block;
position: absolute;
align-content: center;
height: 100%;
top: 0;
right: 0;
padding-right: 10px;
pointer-events: none;
}
/* Filter Katergori */
.filter-kategori select {
font-size: 16px;
font-weight: 400;
padding-left: 15px;
padding-right: 35px;
cursor: pointer;
height: 45px;
appearance: none;
border: 1px solid #ccc;
border-radius: 6px;
}
.filter-kategori {
position: relative;
}
.filter-kategori .material-symbols-outlined {
display: block;
position: absolute;
align-content: center;
height: 100%;
top: 0;
right: 0;
padding-right: 10px;
pointer-events: none;
}
/* Button buat berita */
.button-berita {
display: flex;
align-items: center;
padding-left: 15px;
padding-right: 15px;
text-decoration: none;
border-radius: 6px;
background-color: #28a745;
color: white;
cursor: pointer;
height: 45px;
}
.button-berita:hover {
background-color: #228f3b;
}
/* Tabel */
.table-container {
margin-top: 20px;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background: #f4f4f4;
font-weight: bold;
}
td.alamat {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 300px;
}
.status {
padding: 5px 10px;
border-radius: 15px;
font-size: 12px;
font-weight: bold;
display: inline-block;
}
.status-processing {
background: #fff3cd;
color: #856404;
}
.status-rejected {
background: #f8d7da;
color: #721c24;
}
.status-done {
background: #d4edda;
color: #155724;
}
.edit-btn .material-symbols-outlined {
background: #28a745;
color: white;
border: none;
padding: 6px;
border-radius: 6px;
cursor: pointer;
}
.edit-btn:hover .material-symbols-outlined:hover {
background: #218838;
}
.detail-ditolak .material-symbols-outlined {
background: white;
color: white;
border: none;
padding: 6px;
border-radius: 6px;
}
.delete-btn {
background: red;
color: white;
border: none;
padding: 5px;
border-radius: 5px;
cursor: pointer;
}
/* Pagination */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
padding: 9px;
padding-bottom: 0px;
}
.pagination .page-item {
list-style: none;
}
.pagination .page-link {
text-decoration: none;
padding: 8px 12px;
border: 1px solid #ddd;
color: #2a8f47;
border-radius: 5px;
transition: 0.3s;
}
.pagination .page-link:hover {
background-color: #2a8f47;
color: white;
}
.pagination .active .page-link {
background-color: #198754;
color: white;
border: 1px solid #198754;
}
/* Form-Pengajuan */
.title-form {
display: flex;
justify-content: space-between;
align-content: center;
}
.card-form table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
.card-form td {
padding: 10px;
border-bottom: 1px solid #ddd;
}
.upload-box {
border: 2px dashed #ccc;
padding: 20px;
text-align: center;
margin-top: 20px;
border-radius: 5px;
}
.save {
background: #2a8f47;
color: white;
border: none;
width: 100%;
padding: 10px 20px;
margin-top: 20px;
cursor: pointer;
border-radius: 6px;
}
.back {
background: #2a8f47;
color: white;
border: none;
padding: 10px 20px;
margin-top: 20px;
cursor: pointer;
border-radius: 6px;
text-decoration: none;
align-content: center;
}
.detail-dokumen {
cursor: pointer;
display: flex;
align-content: center;
gap: 15px;
align-items: center;
margin: 0px;
}
.card-form textarea {
font-size: 14px;
font-weight: 400;
padding: 15px;
border: 1px solid #ccc;
width: 100%;
resize: vertical;
box-sizing: border-box;
border-radius: 5px;
}
.swal-custom-title {
font-size: 22px !important;
}
.swal-custom-text {
font-size: 16px !important;
}
.swal-custom-button {
font-size: 16px !important;
}