542 lines
12 KiB
CSS
542 lines
12 KiB
CSS
/* Government Theme Colors */
|
|
:root {
|
|
--government-primary: #1e3c72;
|
|
--government-secondary: #2a5298;
|
|
--government-accent: #ffd700;
|
|
--government-light: #f8f9ff;
|
|
--government-dark: #163056;
|
|
}
|
|
|
|
body {
|
|
background-color: #f4f7f6;
|
|
font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
margin: 0;
|
|
}
|
|
|
|
.sidebar-government {
|
|
background: linear-gradient(180deg, var(--government-primary) 0%, var(--government-secondary) 100%);
|
|
box-shadow: 4px 0 15px rgba(30, 60, 114, 0.2);
|
|
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1000;
|
|
|
|
width: 280px;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Overlay pattern untuk tekstur sidebar */
|
|
.sidebar-government::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="white" opacity="0.05"/></svg>');
|
|
opacity: 0.1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sidebar-government .brand-section {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 15px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
text-align: left;
|
|
}
|
|
|
|
.sidebar-government .brand-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sidebar-government .brand-subtitle {
|
|
font-size: 16px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.sidebar-government .brand-text {
|
|
color: white;
|
|
margin-left: 0px;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Logo */
|
|
.logo-wrapper {
|
|
width: 75px;
|
|
height: 75px;
|
|
border-radius: 50%;
|
|
padding: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.logo-img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.sidebar-government .nav-link {
|
|
color: rgba(255, 255, 255, 0.9) !important;
|
|
padding: 12px 16px;
|
|
margin-bottom: 8px;
|
|
border-radius: 12px;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
backdrop-filter: blur(5px);
|
|
border: 1px solid transparent;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Efek kilau saat hover */
|
|
.sidebar-government .nav-link::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
|
transition: left 0.5s ease;
|
|
}
|
|
|
|
.sidebar-government .nav-link:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.sidebar-government .nav-link:hover {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
color: white !important;
|
|
transform: translateX(8px);
|
|
border-color: rgba(255, 215, 0, 0.5);
|
|
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
|
|
}
|
|
|
|
.sidebar-government .nav-link.active {
|
|
background: linear-gradient(135deg, var(--government-accent) 0%, #ffed4e 100%);
|
|
color: var(--government-primary) !important;
|
|
font-weight: 600;
|
|
border-color: var(--government-accent);
|
|
box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
|
|
}
|
|
|
|
.sidebar-government .nav-link.active i {
|
|
color: var(--government-primary) !important;
|
|
}
|
|
|
|
.sidebar-government .nav-link i {
|
|
width: 20px;
|
|
margin-right: 12px;
|
|
text-align: center;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.sidebar-government hr {
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.btn-government-logout {
|
|
background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
|
|
border: none;
|
|
color: white;
|
|
padding: 12px 20px;
|
|
border-radius: 12px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
width: 100%;
|
|
box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-government-logout:hover {
|
|
background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
|
|
color: white;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
|
|
}
|
|
|
|
/* Mobile Navbar Styles */
|
|
.mobile-navbar-government {
|
|
background: linear-gradient(135deg, var(--government-primary) 0%, var(--government-secondary) 100%);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
|
|
border-bottom: 3px solid var(--government-accent);
|
|
}
|
|
|
|
.mobile-navbar-government .navbar-brand {
|
|
color: white !important;
|
|
font-weight: 600;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Nav section headers */
|
|
.nav-section-header {
|
|
color: var(--government-accent);
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
margin: 20px 0 10px 0;
|
|
padding-left: 16px;
|
|
}
|
|
|
|
/* User info section */
|
|
.user-info {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 12px;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
backdrop-filter: blur(5px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.user-info .user-name {
|
|
color: white;
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.user-info .user-role {
|
|
color: var(--government-accent);
|
|
font-size: 0.85rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Responsive Main Content area adjustment */
|
|
.main-content {
|
|
transition: margin 0.3s ease;
|
|
padding: 20px;
|
|
}
|
|
|
|
@media (min-width: 769px) {
|
|
.main-content {
|
|
margin-left: 280px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.navbar-collapse {
|
|
background: linear-gradient(135deg, var(--government-primary) 0%, var(--government-secondary) 100%);
|
|
margin-top: 10px;
|
|
border-radius: 15px;
|
|
padding: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
|
}
|
|
}
|
|
|
|
/* SweetAlert Custom Styles */
|
|
.swal-government-popup {
|
|
border-radius: 15px !important;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
|
|
padding: 2rem !important;
|
|
}
|
|
.swal-government-title {
|
|
color: #1e3c72 !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
.swal-government-confirm {
|
|
background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
|
|
color: white !important;
|
|
border: none !important;
|
|
border-radius: 8px !important;
|
|
padding: 10px 24px !important;
|
|
margin-left: 10px !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
.swal-government-cancel {
|
|
background: #6c757d !important;
|
|
color: white !important;
|
|
border: none !important;
|
|
border-radius: 8px !important;
|
|
padding: 10px 24px !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* ============================= */
|
|
/* MOBILE NAVBAR GOVERNMENT FIX */
|
|
/* ============================= */
|
|
|
|
.mobile-navbar-government {
|
|
background: linear-gradient(135deg, var(--government-primary) 0%, var(--government-secondary) 100%);
|
|
color: white;
|
|
border-bottom: 3px solid var(--government-accent);
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
/* Brand */
|
|
.mobile-navbar-government .navbar-brand {
|
|
color: white !important;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.mobile-navbar-government .navbar-brand i {
|
|
color: white !important;
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
/* Hamburger button */
|
|
.mobile-navbar-government .navbar-toggler {
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
padding: 6px 10px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.mobile-navbar-government .navbar-toggler:focus {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.mobile-navbar-government .navbar-toggler-icon {
|
|
filter: brightness(0) invert(1); /* bikin icon putih */
|
|
}
|
|
|
|
/* Collapse area */
|
|
@media (max-width: 768px) {
|
|
.mobile-navbar-government .navbar-collapse {
|
|
background: linear-gradient(180deg, var(--government-primary) 0%, var(--government-secondary) 100%);
|
|
margin-top: 15px;
|
|
border-radius: 15px;
|
|
padding: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.mobile-navbar-government .nav-link {
|
|
color: white !important;
|
|
font-weight: 500;
|
|
padding: 12px 14px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.mobile-navbar-government .nav-link i {
|
|
color: white !important;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.mobile-navbar-government .nav-link:hover {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.mobile-navbar-government .nav-link.active {
|
|
background: linear-gradient(135deg, var(--government-accent) 0%, #ffed4e 100%);
|
|
color: var(--government-primary) !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mobile-navbar-government .nav-link.active i {
|
|
color: var(--government-primary) !important;
|
|
}
|
|
}
|
|
|
|
/* User Info */
|
|
.mobile-user-info {
|
|
text-align: center;
|
|
padding-bottom: 15px;
|
|
margin-bottom: 15px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.mobile-user-info .user-name {
|
|
color: var(--government-accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mobile-user-info .user-role {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Logout button mobile */
|
|
.mobile-navbar-government .btn-government-logout {
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* =========================
|
|
PROFIL DESA
|
|
========================= */
|
|
body {
|
|
background-color: #f8f9fc;
|
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
/* Styles Dasar dari Tema Government */
|
|
.card-government {
|
|
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
|
|
color: white;
|
|
border: none;
|
|
box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
|
|
border-radius: 15px;
|
|
}
|
|
|
|
.bg-gradient-primary {
|
|
background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
|
|
}
|
|
|
|
/* Utilities untuk Border Samping (Shadow-sm & Colored Borders) */
|
|
.border-left-primary {
|
|
border-left: 0.25rem solid #4e73df !important;
|
|
}
|
|
|
|
.border-left-success {
|
|
border-left: 0.25rem solid #1cc88a !important;
|
|
}
|
|
|
|
.border-left-info {
|
|
border-left: 0.25rem solid #36b9cc !important;
|
|
}
|
|
|
|
.border-left-warning {
|
|
border-left: 0.25rem solid #f6c23e !important;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05rem;
|
|
color: #5a5c69;
|
|
border-bottom: 2px solid #e3e6f0;
|
|
padding-bottom: 5px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.btn-icon-split {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
display: inline-flex;
|
|
align-items: stretch;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-icon-split .icon {
|
|
background: rgba(0, 0, 0, 0.15);
|
|
padding: 0.375rem 0.75rem;
|
|
}
|
|
|
|
.btn-icon-split .text {
|
|
padding: 0.375rem 0.75rem;
|
|
}
|
|
|
|
.card {
|
|
border-radius: 10px;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* =========================
|
|
EDIT PROFIL DESA
|
|
========================= */
|
|
body {
|
|
background-color: #f8f9fc;
|
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
/* Styles Dasar dari Tema Government */
|
|
.card-government {
|
|
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
|
|
color: white;
|
|
border: none;
|
|
box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.bg-gradient-primary {
|
|
background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
|
|
}
|
|
|
|
.bg-government-light {
|
|
background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 50px;
|
|
padding: 0 15px;
|
|
}
|
|
|
|
/* Update Section Styling */
|
|
.section-title {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05rem;
|
|
color: #1e3c72;
|
|
border-bottom: none !important;
|
|
padding-bottom: 0;
|
|
margin-bottom: 0 !important;
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Form Styling */
|
|
.form-label {
|
|
font-weight: 600;
|
|
color: #353535;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.required-field::after {
|
|
content: " *";
|
|
color: red;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: #4e73df;
|
|
box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
|
|
}
|
|
|
|
/* Button Styling */
|
|
.btn-icon-split {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
display: inline-flex;
|
|
align-items: stretch;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-icon-split .icon {
|
|
background: rgba(0, 0, 0, 0.15);
|
|
padding: 0.375rem 1rem;
|
|
}
|
|
|
|
.btn-icon-split .text {
|
|
padding: 0.375rem 1rem;
|
|
}
|
|
|
|
.form-group-spacing {
|
|
padding: 10px 0;
|
|
}
|
|
|
|
hr {
|
|
border-top: 1px solid #e3e6f0;
|
|
opacity: 1;
|
|
}
|