:root { --primary-color: #4caf50; --secondary-color: #ffffff; --background-color: #f4f7fc; --text-color: #333; --text-light-color: #666; --shadow-color: rgba(0, 0, 0, 0.1); --border-radius: 10px; } /* General container styling */ .roles { display: flex; flex-direction: column; align-items: center; background-color: #f4f7fc; padding: 20px; } .roles-container { max-width: 800px; margin: 20px auto; padding: 20px; background-color: var(--secondary-color); border-radius: var(--border-radius); box-shadow: 0 0 20px var(--shadow-color); } /* Heading styling */ h1 { text-align: center; margin-bottom: 20px; color: var(--text-color); font-size: 28px; font-weight: bold; border-bottom: 2px solid #ddd; padding-bottom: 10px; background: linear-gradient(to right, #3498db, #2980b9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* List container styling */ .roles-list { margin-bottom: 20px; } /* Role item styling */ .role-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; margin-bottom: 10px; background-color: var(--secondary-color); border-radius: var(--border-radius); box-shadow: 0 2px 10px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; } .role-item:hover { transform: translateY(-5px); box-shadow: 0 4px 20px var(--shadow-color); } /* User email styling */ .user-email { margin: 0; font-size: 1rem; font-weight: bold; color: var(--text-color); } /* Role actions container styling */ .role-actions { display: flex; gap: 10px; } /* Button styling */ .btn { padding: 10px 15px; color: var(--secondary-color); border: none; border-radius: var(--border-radius); cursor: pointer; transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s; box-shadow: 0 2px 5px var(--shadow-color); font-weight: bold; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; } .btn:active { transform: translateY(2px); box-shadow: 0 1px 3px var(--shadow-color); } .admin-btn { background: linear-gradient(145deg, #3498db, #2980b9); color: var(--secondary-color); } .admin-btn:hover { background: linear-gradient(145deg, #2980b9, #3498db); } .user-btn { background: linear-gradient(145deg, #bdc3c7, #95a5a6); color: var(--secondary-color); } .user-btn:hover { background: linear-gradient(145deg, #95a5a6, #bdc3c7); } /* Loading text styling */ .loading-text { text-align: center; margin-top: 20px; font-size: 18px; color: var(--text-color); } /* Responsive design for smaller screens */ @media (max-width: 600px) { .roles-container { padding: 10px; } .role-item { flex-direction: column; align-items: flex-start; } .role-actions { margin-top: 10px; width: 100%; justify-content: space-between; } .btn { width: 100%; text-align: center; } }