366 lines
7.5 KiB
CSS
366 lines
7.5 KiB
CSS
.admin-container {
|
|
max-width: 1200px;
|
|
margin: 2rem auto;
|
|
padding: 0 1rem;
|
|
color: var(--text, #f0f0f0);
|
|
}
|
|
|
|
.admin-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.admin-header h1 {
|
|
margin: 0;
|
|
font-size: 2rem;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.admin-header h1 span {
|
|
color: var(--primary, #4f7eff);
|
|
}
|
|
|
|
.admin-tabs {
|
|
display: flex;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
padding: 4px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.admin-tabs button {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted, #888);
|
|
padding: 8px 20px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.admin-tabs button.active {
|
|
background: var(--primary, #4f7eff);
|
|
color: white;
|
|
}
|
|
|
|
.admin-error {
|
|
background: rgba(255, 77, 77, 0.1);
|
|
color: #ff4d4d;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 77, 77, 0.2);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.admin-table th, .admin-table td {
|
|
padding: 1rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.admin-table th {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
color: var(--text-muted, #888);
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.admin-table tr:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.role-badge, .type-badge {
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.role-badge.admin { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; border: 1px solid rgba(255, 107, 107, 0.3); }
|
|
.role-badge.moderator { background: rgba(255, 209, 102, 0.15); color: #ffd166; border: 1px solid rgba(255, 209, 102, 0.3); }
|
|
.role-badge.user { background: rgba(79, 126, 255, 0.1); color: #4f7eff; border: 1px solid rgba(79, 126, 255, 0.2); }
|
|
|
|
select.role-badge {
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
text-align: center;
|
|
}
|
|
|
|
select.role-badge option {
|
|
background: #1a1a1a;
|
|
color: #fff;
|
|
}
|
|
|
|
.row-deleted {
|
|
opacity: 0.6;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.status-active {
|
|
color: #4caf50;
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.status-deleted {
|
|
color: #ff6b6b;
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.admin-table td strong {
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
.admin-table td {
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.type-badge.paid { background: rgba(255, 209, 102, 0.15); color: #ffd166; border: 1px solid rgba(255, 209, 102, 0.3); }
|
|
.type-badge.free { background: rgba(6, 214, 160, 0.15); color: #06d6a0; border: 1px solid rgba(6, 214, 160, 0.3); }
|
|
.type-badge.adwall { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
|
|
|
|
.btn-delete {
|
|
background: rgba(255, 77, 77, 0.1);
|
|
color: #ff4d4d;
|
|
border: 1px solid rgba(255, 77, 77, 0.2);
|
|
padding: 4px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn-view {
|
|
background: rgba(79, 126, 255, 0.1);
|
|
color: #4f7eff;
|
|
border: 1px solid rgba(79, 126, 255, 0.2);
|
|
padding: 4px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-view:hover {
|
|
background: #4f7eff;
|
|
color: white;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.admin-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.admin-modal {
|
|
background: #1a1a1a;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 12px;
|
|
width: 90%;
|
|
max-width: 600px;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
|
|
animation: modalAppear 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes modalAppear {
|
|
from { opacity: 0; transform: translateY(20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.5rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
color: var(--primary, #4f7eff);
|
|
}
|
|
|
|
.close-modal {
|
|
background: none;
|
|
border: none;
|
|
color: #888;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.details-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.detail-item {
|
|
font-size: 0.95rem;
|
|
color: #ccc;
|
|
}
|
|
|
|
.detail-item strong {
|
|
display: block;
|
|
color: #888;
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.detail-item.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.details-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.admin-controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-search {
|
|
flex: 1;
|
|
min-width: 250px;
|
|
}
|
|
|
|
.admin-search input {
|
|
width: 100%;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
padding: 10px 16px;
|
|
border-radius: 8px;
|
|
font-family: inherit;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.admin-search input:focus {
|
|
border-color: var(--primary, #4f7eff);
|
|
}
|
|
|
|
.admin-filters {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.admin-filters select {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
padding: 8px 12px;
|
|
border-radius: 8px;
|
|
font-family: inherit;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-filters select:focus {
|
|
border-color: var(--primary, #4f7eff);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.admin-header {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
.admin-tabs {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
.admin-tabs button {
|
|
flex: 1;
|
|
padding: 8px 10px;
|
|
font-size: 0.85rem;
|
|
}
|
|
.admin-table thead {
|
|
display: none;
|
|
}
|
|
.admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
.admin-table tr {
|
|
margin-bottom: 1.5rem;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
padding: 1rem;
|
|
}
|
|
.admin-table td {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
text-align: right;
|
|
}
|
|
.admin-table td:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
.admin-table td::before {
|
|
content: attr(data-label);
|
|
font-weight: 700;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted, #888);
|
|
margin-right: 1rem;
|
|
text-align: left;
|
|
}
|
|
}
|