TIF_NGANJUK_E41220461/public/css/app.css

569 lines
9.7 KiB
CSS

:root {
--primary: #0066cc;
--primary-dark: #004d99;
--primary-light: #4d94ff;
--secondary: #00a8ff;
--dark: #1a1a2e;
--darker: #0d0d1a;
--light: #f8f9fa;
--lighter: #ffffff;
--gradient: linear-gradient(135deg, var(--primary), var(--secondary));
--gradient-dark: linear-gradient(135deg, var(--primary-dark), #0097e6);
--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
--shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
--border-radius: 16px;
--border-radius-lg: 24px;
--transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background-color: #f5f7fb;
overflow-x: hidden;
}
.admin-wrapper {
display: flex;
min-height: 100svh;
}
.sidebar {
width: 280px;
background: var(--gradient-dark);
color: white;
transition: var(--transition);
position: fixed;
height: 120svh;
z-index: 1000;
box-shadow: var(--shadow-lg);
}
.sidebar-header {
padding: 25px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: space-between;
}
.sidebar-brand {
display: flex;
align-items: center;
gap: 12px;
}
.sidebar-brand img {
width: 200px;
height: auto;
border-radius: 8px;
}
.sidebar-brand-text {
font-family: 'Poppins', sans-serif;
font-weight: 700;
font-size: 1.3rem;
}
.sidebar-menu {
padding: 10px 0;
list-style: none;
}
.sidebar-item {
margin-bottom: 8px;
}
.sidebar-link {
display: flex;
align-items: center;
padding: 15px 20px;
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
transition: var(--transition);
border-left: 4px solid transparent;
}
.sidebar-link:hover,
.sidebar-link.active {
background: rgba(255, 255, 255, 0.1);
color: white;
border-left-color: #ffff;
}
.sidebar-link i {
font-size: 1.2rem;
margin-right: 15px;
width: 24px;
text-align: center;
}
.sidebar-dropdown {
list-style: none;
padding-left: 0;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.sidebar-dropdown.show {
max-height: 500px;
}
.sidebar-dropdown .sidebar-link {
padding-left: 60px;
font-size: 0.9rem;
}
/* Main Content */
.main-content {
flex: 1;
margin-left: 280px;
transition: var(--transition);
}
/* Header */
.admin-header {
background: white;
padding: 20px 30px;
box-shadow: var(--shadow);
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 999;
}
.header-left {
display: flex;
align-items: center;
gap: 15px;
}
.mobile-toggle {
display: none;
background: none;
border: none;
font-size: 1.3rem;
color: var(--dark);
cursor: pointer;
padding: 8px;
border-radius: 6px;
transition: var(--transition);
}
.mobile-toggle:hover {
background: var(--light);
}
.header-title h1 {
font-family: 'Poppins', sans-serif;
font-weight: 700;
font-size: 1.5rem;
color: var(--dark);
margin: 0;
}
.header-right {
display: flex;
align-items: center;
gap: 20px;
}
.header-actions {
display: flex;
align-items: center;
gap: 15px;
}
.notification-btn,
.profile-btn {
background: none;
border: none;
font-size: 1.8rem;
color: var(--dark);
cursor: pointer;
position: relative;
padding: 8px;
border-radius: 50%;
transition: var(--transition);
}
.notification-badge {
position: absolute;
top: 5px;
right: 5px;
background: var(--accent);
color: white;
border-radius: 50%;
width: 18px;
height: 18px;
font-size: 0.7rem;
display: flex;
align-items: center;
justify-content: center;
}
.profile-dropdown {
position: relative;
}
.profile-menu {
position: absolute;
top: 100%;
right: 0;
background: white;
border-radius: var(--border-radius);
box-shadow: var(--shadow-lg);
padding: 10px 0;
min-width: 200px;
display: none;
z-index: 1000;
}
.profile-menu.show {
display: block;
}
.profile-menu-item {
display: block;
padding: 10px 20px;
color: var(--dark);
text-decoration: none;
transition: var(--transition);
border: none;
background: none;
width: 100%;
text-align: left;
}
.profile-menu-item:hover {
background: var(--light);
color: var(--primary);
}
/* Content Area */
.content-wrapper {
padding: 30px;
}
@media (max-width: 1199.98px) {
.sidebar {
width: 250px;
}
.main-content {
margin-left: 250px;
}
}
@media (max-width: 991.98px) {
.sidebar {
transform: translateX(-100%);
width: 280px;
}
.sidebar.mobile-open {
transform: translateX(0);
}
.main-content {
margin-left: 0;
}
.mobile-toggle {
display: block;
}
}
@media (max-width: 767.98px) {
.admin-header {
padding: 15px 20px;
}
.content-wrapper {
padding: 20px;
}
.dashboard-cards {
grid-template-columns: 1fr;
}
.header-title h1 {
font-size: 1.3rem;
}
}
@media (max-width: 575.98px) {
.admin-header {
padding: 12px 15px;
}
.content-wrapper {
padding: 15px;
}
.dashboard-card {
padding: 20px;
}
.card-value {
font-size: 1.8rem;
}
}
.mobile-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
display: none;
}
.mobile-overlay.show {
display: block;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.5s ease-out;
}
.profile-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
}
.profile-btn {
display: flex;
justify-content: center;
align-items: center;
}
.profile-btn i {
color: var(--primary);
}
.name-header {
font-size: 20px;
font-weight: 600;
color: var(--primary);
}
.sidebar-item.logout-item {
margin-top: auto;
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 10px;
}
.sidebar-item.logout-item .sidebar-link {
color: #dd3333 !important;
background: #ffff;
padding: 20px;
border-radius: 20px;
margin-left: 16px;
margin-right: 16px;
font-weight: 800;
border: none;
}
.sidebar-item.logout-item .sidebar-link:hover {
background: #dd3333;
color: #ffff !important;
border: none;
}
.profile-info {
background: #f8f9fa;
margin: -10px 0 5px 0;
}
.swal2-popup {
border-radius: var(--border-radius) !important;
}
.swal2-confirm {
border-radius: 8px !important;
}
.swal2-cancel {
border-radius: 8px !important;
}
@media (max-width: 767.98px) {
.profile-btn span {
display: none !important;
}
}
.loading {
opacity: 0.7;
pointer-events: none;
}
.profile-menu {
animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.dropdown-toggle::after {
display: none !important;
}
.sidebar-item.has-dropdown {
position: relative;
}
.sidebar-link.dropdown-toggle {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.dropdown-arrow {
font-size: 0.8rem;
transition: transform 0.3s ease;
margin-left: auto;
}
.sidebar-item.has-dropdown.active .dropdown-arrow {
transform: rotate(180deg);
}
.sidebar-dropdown {
list-style: none;
text-decoration: none;
padding-left: 0;
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, opacity 0.3s ease;
opacity: 0;
background: rgba(0, 0, 0, 0.1);
}
.sidebar-dropdown.show {
max-height: 500px;
opacity: 1;
}
.sidebar-dropdown .sidebar-link {
padding-left: 60px;
font-size: 0.9rem;
border-left: none;
position: relative;
}
.sidebar-dropdown .sidebar-link::before {
content: '';
position: absolute;
left: 40px;
top: 50%;
transform: translateY(-50%);
width: 6px;
height: 6px;
background: rgba(255, 255, 255, 0.5);
border-radius: 50%;
}
.sidebar-dropdown .sidebar-link.active::before {
background: white;
}
.sidebar-item.has-dropdown.active > .sidebar-link {
background: rgba(255, 255, 255, 0.15);
color: white;
border-left-color: white;
}
@media (max-width: 991.98px) {
.sidebar {
height: 100vh;
overflow-y: auto;
}
.sidebar-dropdown .sidebar-link {
padding-left: 50px;
}
.sidebar-dropdown .sidebar-link::before {
left: 30px;
}
}
.sidebar {
transition: transform 0.3s ease, width 0.3s ease;
}
.mobile-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.show {
opacity: 1;
visibility: visible;
}
.sidebar-menu {
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.sidebar-menu::-webkit-scrollbar {
width: 4px;
}
.sidebar-menu::-webkit-scrollbar-track {
background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 2px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
}