/* User Management Page Styles */

#manajemen-pengguna {
    padding: 20px;
}

#manajemen-pengguna h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Tab Navigation */
#manajemen-pengguna .tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

#manajemen-pengguna .tab-nav .tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

#manajemen-pengguna .tab-nav .tab-btn:hover {
    color: #495057;
    background-color: #f8f9fa;
}

#manajemen-pengguna .tab-nav .tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* Tab Content */
#manajemen-pengguna .tab-content {
    margin-top: 20px;
}

#manajemen-pengguna .tab-pane {
    display: none;
}

#manajemen-pengguna .tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* fadeIn keyframes defined in base.css */

/* Search Box */
.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: 350px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* User Table */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-table thead {
    background-color: #f8f9fa;
}

.user-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.user-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.user-table tbody tr:hover {
    background-color: #f8f9fa;
}

.user-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge-admin {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.role-badge-operator {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Action Buttons - Styles defined in components.css */
/* Keep page-specific styling only */

/* Role Management Cards */
.role-management {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.role-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.role-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.role-badge.admin {
    background-color: #ffc107;
    color: #000;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}

.role-badge.operator {
    background-color: #17a2b8;
    color: white;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}

.role-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.role-permissions h4 {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

.role-permissions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-permissions li {
    padding: 6px 0;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-permissions li::before {
    font-size: 16px;
}

/* Loading Spinner */
.loading-spinner {
    font-size: 16px;
    color: #6c757d;
    animation: pulse 1.5s ease-in-out infinite;
}

/* pulse keyframes defined in base.css */

/* Responsive Design */
@media (max-width: 768px) {
    .role-management {
        grid-template-columns: 1fr;
    }
    
    #manajemen-pengguna .tab-nav {
        flex-wrap: wrap;
    }
    
    #manajemen-pengguna .tab-nav .tab-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .user-table {
        font-size: 12px;
    }
    
    .user-table thead th,
    .user-table tbody td {
        padding: 8px 10px;
    }
    
    .search-box input {
        max-width: 100%;
    }
}
