* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --border-color: #e1e8ed;
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(231, 76, 60, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(46, 204, 113, 0.03) 0%, transparent 25%);
    z-index: -1;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR STYLES YANG DIPERBAIKI ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--secondary-color) 0%, #1a252f 100%);
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.15);
    border-right: none;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.logo {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.5;
}

.logo h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.menu {
    list-style: none;
    padding: 25px 0;
}

.menu-item {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    margin: 6px 18px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.25), rgba(52, 152, 219, 0.15));
    border-left-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(52, 152, 219, 0.2));
    border-left-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
}

.menu-item i {
    width: 22px;
    text-align: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.menu-item:hover i {
    transform: scale(1.1);
}

.menu-item span {
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.sidebar.collapsed .menu-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* ===== MAIN CONTENT STYLES YANG DIPERBAIKI ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dark-text);
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.menu-toggle:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.header-right .user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.header-right .user-profile:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.user-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transition: transform 0.3s ease;
}

.user-profile:hover img {
    transform: scale(1.1);
}

/* ===== LOGOUT BUTTON STYLES YANG DIPERBAIKI ===== */
.logout-btn {
    background: linear-gradient(135deg, var(--accent-color), #c0392b) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin-left: 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.logout-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.6s !important;
}

.logout-btn:hover::before {
    left: 100% !important;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5) !important;
}

/* ===== CONTENT AREA STYLES YANG DIPERBAIKI ===== */
.content-area {
    padding: 40px;
}

.content-section {
    display: none;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.active {
    display: block;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ===== HOME CONTENT YANG DIPERBAIKI ===== */
.welcome-section {
    background: var(--gradient-primary);
    color: white;
    padding: 50px 45px;
    border-radius: 25px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.welcome-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--dark-text), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-activity {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.recent-activity h3 {
    margin-bottom: 30px;
    color: var(--dark-text);
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.recent-activity h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.activity-list {
    text-align: left;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 5px 0;
}

.activity-item:hover {
    background: rgba(52, 152, 219, 0.05);
    padding-left: 15px;
    transform: translateX(5px);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
}

.activity-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.activity-content {
    flex: 1;
    text-align: left;
}

/* ===== ACTIVITY STYLES IMPROVEMENT ===== */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 15px;
    flex-wrap: wrap;
}

.activity-timestamp {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.activity-user {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light-text);
    background: rgba(127, 140, 141, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(127, 140, 141, 0.2);
}

.activity-message {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.activity-content {
    flex: 1;
    text-align: left;
}

.activity-item:hover .activity-timestamp {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.activity-item:hover .activity-user {
    background: rgba(127, 140, 141, 0.2);
    transform: translateY(-1px);
}

/* ===== SECTION HEADER YANG DIPERBAIKI ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    color: var(--dark-text);
    flex: 1;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--dark-text), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::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.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.5);
}

/* ===== TABLE CONTAINER YANG DIPERBAIKI ===== */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    border-radius: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.data-table th,
.data-table td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.data-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 800;
    color: var(--dark-text);
    position: sticky;
    top: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.data-table tr {
    transition: all 0.3s ease;
}

.data-table tr:hover td {
    background: rgba(52, 152, 219, 0.05);
    transform: scale(1.01);
}

.data-table th:nth-child(1) { min-width: 160px; }
.data-table th:nth-child(2) { min-width: 90px; }
.data-table th:nth-child(3) { min-width: 110px; }
.data-table th:nth-child(4) { min-width: 110px; }
.data-table th:nth-child(5) { min-width: 190px; }
.data-table th:nth-child(6) { min-width: 110px; }
.data-table th:nth-child(7) { min-width: 130px; }
.data-table th:nth-child(8) { min-width: 160px; }
.data-table th:nth-child(9) { min-width: 110px; }
.data-table th:nth-child(10) { min-width: 110px; }
.data-table th:nth-child(11) { min-width: 90px; }
.data-table th:nth-child(12) { min-width: 130px; }
.data-table th:nth-child(13) { min-width: 130px; }

/* ===== STAFF INFO YANG DIPERBAIKI ===== */
.staff-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-details {
    text-align: center;
}

.staff-name {
    font-weight: 800;
    color: var(--dark-text);
    font-size: 1rem;
}

.staff-inisial {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 3px;
}

.status {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status.active {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.status.inactive {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    color: #721c24;
}

.masa-kerja-badge {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    min-width: 110px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.masa-kerja-badge.new {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.masa-kerja-badge.mid {
    background: linear-gradient(135deg, #d1ecf1, #b8e2e8);
    color: #0c5460;
    border: 1px solid #b8e2e8;
}

.masa-kerja-badge.senior {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    background: none;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--light-text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-view {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-view:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
}

.btn-edit {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--light-text);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 25px;
    opacity: 0.6;
    display: block;
    color: var(--primary-color);
}

.empty-state p {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

/* ===== USERS GRID YANG DIPERBAIKI ===== */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.user-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.user-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.user-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    transition: transform 0.3s ease;
}

.user-card:hover .user-avatar img {
    transform: scale(1.1);
}

.user-info {
    flex: 1;
    text-align: center;
}

.user-info h3 {
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--dark-text);
    font-size: 1.2rem;
}

.user-info p {
    color: var(--light-text);
    margin-bottom: 12px;
    font-size: 1rem;
}

.role {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.role.administrator {
    background: linear-gradient(135deg, #d4edff, #b3d9ff);
    color: #004085;
}

.role.kasir {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #383d41;
}

.user-actions {
    display: flex;
    gap: 8px;
}

/* ===== MODAL STYLES YANG DIPERBAIKI ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    margin: 3% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideInUp {
    from { 
        transform: translateY(60px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 30px 40px;
    border-radius: 25px 25px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.7rem;
    flex: 1;
    font-weight: 800;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close {
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 40px;
}

/* ===== FORM STYLES YANG DIPERBAIKI ===== */
.staff-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--dark-text);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(52, 152, 219, 0.15),
        0 8px 25px rgba(52, 152, 219, 0.2);
    background: white;
    transform: translateY(-2px);
}

.form-group input.readonly {
    background-color: rgba(248, 249, 250, 0.8);
    color: var(--light-text);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-secondary::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.6s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 117, 125, 0.5);
}

/* ===== STAFF DETAIL STYLES YANG DIPERBAIKI ===== */
.staff-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 800;
    color: var(--dark-text);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.detail-value {
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ===== NOTIFICATION STYLES YANG DIPERBAIKI ===== */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 3000;
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    color: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
}

.notification.success {
    background: linear-gradient(135deg, var(--success-color), #219653);
}

.notification.error {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
}

.notification.info {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%) translateY(-20px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0) translateY(0); 
        opacity: 1; 
    }
}

@keyframes slideOutRight {
    from { 
        transform: translateX(0) translateY(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%) translateY(-20px); 
        opacity: 0; 
    }
}

/* ===== RESPONSIVE DESIGN YANG DIPERBAIKI ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }
    
    .sidebar .menu-item span {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: var(--sidebar-collapsed);
    }
    
    .content-area {
        padding: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 25px;
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .content-area {
        padding: 25px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .table-container {
        border-radius: 15px;
        margin: 0 -10px;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 15px 12px;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
    
    .staff-detail {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .welcome-section {
        padding: 35px 25px;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    /* Responsive design untuk activity header */
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .activity-timestamp,
    .activity-user {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .welcome-section h2 {
        font-size: 1.7rem;
    }
    
    .stat-card {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .modal-body {
        padding: 30px 25px;
    }
    
    .modal-header {
        padding: 25px 30px;
    }
}

/* ===== ANIMASI TAMBAHAN ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== SCROLLBAR CUSTOM ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* ===== GLOW ANIMATION ===== */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 25px rgba(52, 152, 219, 0.4); }
    50% { box-shadow: 0 0 35px rgba(52, 152, 219, 0.7); }
}

.glow {
    animation: glow 3s ease-in-out infinite;
}
