aboutsummaryrefslogtreecommitdiffstats
path: root/panel/src/pages/Roles.css
blob: 370110f2e152bdd9336e2f75c81af38f05f59b41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
: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);
}

/* 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;
  }
}