TIF_NGANJUK_E41220461/public/css/manajemen-admin.css

704 lines
12 KiB
CSS

.manajemen-admin-container {
max-width: 1400px;
margin: 0 auto;
}
.page-header {
padding: 20px 0;
}
.page-title {
font-family: 'Poppins', sans-serif;
font-weight: 700;
font-size: 2rem;
color: var(--dark);
margin-bottom: 0.5rem;
}
.page-subtitle {
color: #6c757d;
font-size: 1.1rem;
margin: 0;
}
.stat-card {
background: white;
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--shadow);
display: flex;
align-items: center;
gap: 20px;
transition: var(--transition);
border-left: 4px solid transparent;
}
.stat-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-lg);
}
.stat-card.primary {
border-left-color: var(--primary);
}
.stat-card.success {
border-left-color: #28a745;
}
.stat-card.warning {
border-left-color: #ffc107;
}
.stat-card.info {
border-left-color: #17a2b8;
}
.stat-icon {
width: 60px;
height: 60px;
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: white;
}
.stat-card.primary .stat-icon {
background: var(--gradient);
}
.stat-card.success .stat-icon {
background: linear-gradient(135deg, #28a745, #20c997);
}
.stat-card.warning .stat-icon {
background: linear-gradient(135deg, #ffc107, #fd7e14);
}
.stat-card.info .stat-icon {
background: linear-gradient(135deg, #17a2b8, #6f42c1);
}
.stat-content {
flex: 1;
}
.stat-value {
font-family: 'Poppins', sans-serif;
font-weight: 700;
font-size: 2rem;
color: var(--dark);
margin: 0;
line-height: 1;
}
.stat-label {
color: #6c757d;
font-size: 0.9rem;
margin: 5px 0 0 0;
font-weight: 500;
}
.admin-table-card {
background: white;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
transition: var(--transition);
border: 1px solid rgba(0, 0, 0, 0.05);
}
.admin-table-card:hover {
box-shadow: var(--shadow-lg);
}
.admin-table-card .card-header {
padding: 25px 30px 0;
border: none;
background: none;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
}
.admin-table-card .card-body {
padding: 0;
}
.header-content {
display: flex;
align-items: center;
flex: 1;
}
.header-icon {
font-size: 1.8rem;
color: var(--primary);
margin-right: 15px;
width: 50px;
height: 50px;
background: linear-gradient(135deg, var(--primary-light), var(--primary));
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.card-title {
font-family: 'Poppins', sans-serif;
font-weight: 600;
font-size: 1.3rem;
color: var(--dark);
margin: 0;
}
.card-subtitle {
color: #6c757d;
font-size: 0.9rem;
margin: 5px 0 0 0;
}
.search-box {
position: relative;
min-width: 250px;
}
.search-box i {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: #6c757d;
}
.search-box input {
width: 100%;
padding: 12px 15px 12px 45px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 0.95rem;
transition: var(--transition);
}
.search-box input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.1);
outline: none;
}
.table {
margin: 0;
border-collapse: separate;
border-spacing: 0;
}
.table thead th {
background: #f8f9fa;
border-bottom: 2px solid #e9ecef;
padding: 20px 15px;
font-weight: 600;
color: var(--dark);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.table tbody td {
padding: 20px 15px;
vertical-align: middle;
border-bottom: 1px solid #f0f0f0;
}
.table tbody tr:last-child td {
border-bottom: none;
}
.table tbody tr:hover {
background: #f8f9fa;
}
.current-user {
background: linear-gradient(135deg, #f8f9ff, #e3f2fd) !important;
}
.current-user:hover {
background: linear-gradient(135deg, #f0f4ff, #dbeafe) !important;
}
/* Admin Avatar */
.admin-avatar {
width: 50px;
height: 50px;
}
.admin-avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--primary-light);
}
.avatar-placeholder {
width: 100%;
height: 100%;
border-radius: 50%;
background: var(--gradient);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.2rem;
border: 2px solid var(--primary-light);
}
/* Admin Info */
.admin-info h6 {
font-weight: 600;
color: var(--dark);
margin: 0 0 5px 0;
font-size: 1rem;
}
.admin-email {
color: #6c757d;
font-size: 0.85rem;
}
/* Contact Info */
.contact-info .phone {
color: var(--dark);
font-weight: 500;
}
/* Date */
.date {
color: #6c757d;
font-size: 0.9rem;
}
/* Badges */
.badge {
padding: 6px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.badge-current {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
}
.badge-active {
background: linear-gradient(135deg, #28a745, #20c997);
color: white;
}
.badge-inactive {
background: #6c757d;
color: white;
}
/* Action Buttons */
.action-buttons {
display: flex;
gap: 8px;
justify-content: center;
}
.action-buttons .btn {
width: 36px;
height: 36px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
border: 2px solid;
transition: var(--transition);
}
.btn-edit {
color: var(--primary);
border-color: var(--primary) !important;
background: transparent;
}
.btn-edit:hover {
background: var(--primary);
color: white;
transform: translateY(-2px);
}
.btn-password {
color: #ffc107;
border-color: #ffc107 !important;
background: transparent;
}
.btn-password:hover {
background: #ffc107;
color: white;
transform: translateY(-2px);
}
.btn-delete {
color: #dc3545;
border-color: #dc3545 !important;
background: transparent;
}
.btn-delete:hover {
background: #dc3545;
color: white;
transform: translateY(-2px);
}
/* Empty State */
.empty-state {
padding: 60px 20px;
text-align: center;
}
.empty-state h5 {
color: var(--dark);
margin-bottom: 10px;
font-weight: 600;
}
.empty-state p {
color: #6c757d;
max-width: 400px;
margin: 0 auto;
}
/* Modal Styles */
.modal-content {
border: none;
border-radius: var(--border-radius);
box-shadow: var(--shadow-xl);
}
.modal-header {
border-bottom: 1px solid #e9ecef;
padding: 25px 30px 20px;
}
.modal-title {
font-family: 'Poppins', sans-serif;
font-weight: 600;
color: var(--dark);
display: flex;
align-items: center;
}
.modal-body {
padding: 25px 30px;
}
.modal-footer {
border-top: 1px solid #e9ecef;
padding: 20px 30px 25px;
}
/* Profile Picture Upload */
.profile-picture-upload {
text-align: center;
}
.upload-wrapper {
position: relative;
display: inline-block;
cursor: pointer;
border-radius: 50%;
overflow: hidden;
}
.upload-preview {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--primary-light);
}
.upload-placeholder {
width: 120px;
height: 120px;
border-radius: 50%;
background: var(--gradient);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
border: 3px solid var(--primary-light);
}
.upload-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
opacity: 0;
transition: var(--transition);
border-radius: 50%;
}
.upload-wrapper:hover .upload-overlay {
opacity: 1;
}
.upload-overlay i {
font-size: 1.5rem;
margin-bottom: 5px;
}
.upload-overlay span {
font-size: 0.8rem;
font-weight: 500;
}
.upload-input {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
/* Form Styles */
.form-group {
margin-bottom: 1.5rem;
}
.form-label {
font-weight: 600;
color: var(--dark);
margin-bottom: 8px;
display: block;
}
.form-control {
border: 2px solid #e9ecef;
border-radius: 8px;
padding: 12px 15px;
transition: var(--transition);
font-size: 0.95rem;
}
.form-control:focus {
border-color: var(--primary);
box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.1);
}
.input-group .form-control {
border-right: none;
}
.input-group .btn {
border-left: none;
background: white;
border-color: #e9ecef;
}
.input-group .btn:hover {
background: #f8f9fa;
border-color: #e9ecef;
}
.toggle-password {
background: #e9ecef;
border-radius: 0 8px 8px 0;
color: var(--primary);
}
.toggle-password:hover {
background: #e9ecef;
border-radius: 0 8px 8px 0;
color: var(--primary);
}
.btn-primary {
background: var(--gradient);
border: none;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}
.btn-secondary {
background: #6c757d;
border: none;
}
.btn-secondary:hover {
background: #5a6268;
transform: translateY(-2px);
}
/* Loading State */
.btn-loading {
position: relative;
color: transparent !important;
}
.btn-loading::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
top: 50%;
left: 50%;
margin-left: -10px;
margin-top: -10px;
border: 2px solid #ffffff;
border-radius: 50%;
border-top-color: transparent;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Alert Styles */
.alert {
border: none;
border-radius: 8px;
padding: 15px 20px;
}
.alert-info {
background: #e3f2fd;
color: #0d6efd;
}
/* Responsive Design */
@media (max-width: 991.98px) {
.page-header {
padding: 15px 0;
}
.page-title {
font-size: 1.7rem;
}
.stat-card {
padding: 20px;
}
.stat-value {
font-size: 1.7rem;
}
.admin-table-card .card-header {
padding: 20px 25px 0;
flex-direction: column;
align-items: flex-start;
gap: 15px;
}
.header-content {
width: 100%;
}
.search-box {
min-width: 100%;
}
}
@media (max-width: 767.98px) {
.table thead {
display: none;
}
.table tbody tr {
display: block;
margin-bottom: 20px;
border: 1px solid #e9ecef;
border-radius: var(--border-radius);
padding: 20px;
background: white;
box-shadow: var(--shadow);
}
.table tbody td {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #f0f0f0;
}
.table tbody td:last-child {
border-bottom: none;
}
.table tbody td::before {
content: attr(data-label);
font-weight: 600;
color: var(--dark);
text-transform: uppercase;
font-size: 0.8rem;
letter-spacing: 0.5px;
}
.action-buttons {
justify-content: flex-end;
}
.modal-body {
padding: 20px 25px;
}
.modal-header,
.modal-footer {
padding: 20px 25px;
}
}
@media (max-width: 575.98px) {
.manajemen-admin-container {
padding: 0 15px;
}
.page-title {
font-size: 1.5rem;
}
.stat-card {
flex-direction: column;
text-align: center;
gap: 15px;
}
.upload-preview,
.upload-placeholder {
width: 100px;
height: 100px;
}
.admin-avatar {
width: 40px;
height: 40px;
}
}