/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.dashboard-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Enhanced User Dashboard Header */
.user-header {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 32px 24px;
    position: relative;
}

body.dark-mode .user-header {
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

.header-buttons-wrapper {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
}

.header-buttons-left {
    left: 24px;
    right: auto;
}

.header-buttons-left .header-buttons {
    width: auto;
}

.header-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.header-logo-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.dark-mode .header-logo-container {
    text-align: center;
}

.header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-text {
    text-align: center;
    flex: 1;
}

.header-greeting {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    color: var(--text-primary);
    line-height: 1.3;
}

.user-fullname {
    color: var(--text-primary);
    font-weight: 700;
}

.header-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: var(--background);
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px 12px;
    border-top: 1px solid var(--border-color);
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background: var(--background);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin {
    background: #dbeafe;
    color: #1e40af;
}

.badge-user {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.edit {
    background: #dbeafe;
    color: #1e40af;
}

.action-btn.edit:hover {
    background: #bfdbfe;
}

.action-btn.delete {
    background: #fee2e2;
    color: #991b1b;
}

.action-btn.delete:hover {
    background: #fecaca;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px;
}

