na-kakuyu-temu-mozhno-sozdat/admin.css

244 lines
3.6 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
background: #0a0a0a;
color: #f5f5f7;
line-height: 1.5;
}
.admin-nav {
position: sticky;
top: 0;
background: rgba(29, 29, 31, 0.95);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(255,255,255,0.1);
z-index: 100;
}
.admin-nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 16px 24px;
display: flex;
justify-content: space-between;
align-items: center;
}
.admin-logo {
font-size: 20px;
font-weight: 600;
color: #f5f5f7;
text-decoration: none;
}
.btn-back {
color: #2997ff;
text-decoration: none;
font-size: 14px;
font-weight: 500;
transition: opacity 0.3s;
}
.btn-back:hover {
opacity: 0.8;
}
.admin-container {
max-width: 1200px;
margin: 0 auto;
padding: 40px 24px;
}
.admin-section {
margin-bottom: 60px;
}
.admin-section h2 {
font-size: 28px;
font-weight: 600;
margin-bottom: 24px;
letter-spacing: -0.01em;
}
.admin-card {
background: #1d1d1f;
border-radius: 16px;
padding: 32px;
margin-bottom: 24px;
border: 1px solid rgba(255,255,255,0.08);
}
.admin-card h3 {
font-size: 20px;
margin-bottom: 24px;
font-weight: 600;
}
.admin-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.list-item {
background: #2d2d30;
border-radius: 12px;
padding: 24px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
flex-wrap: wrap;
}
.list-item-info {
flex: 1;
min-width: 200px;
}
.list-item-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 6px;
}
.list-item-meta {
font-size: 14px;
color: #86868b;
}
.list-item-actions {
display: flex;
gap: 12px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
font-size: 14px;
font-weight: 500;
margin-bottom: 8px;
color: #86868b;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 12px 16px;
background: #0a0a0a;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 10px;
color: #f5f5f7;
font-size: 16px;
font-family: inherit;
transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: #2997ff;
}
.form-group textarea {
resize: vertical;
min-height: 80px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.form-actions {
display: flex;
gap: 12px;
margin-top: 24px;
}
.btn {
padding: 12px 24px;
border-radius: 980px;
font-size: 15px;
font-weight: 500;
border: none;
cursor: pointer;
transition: all 0.3s;
}
.btn-primary {
background: #2997ff;
color: white;
}
.btn-primary:hover {
background: #147ce5;
}
.btn-secondary {
background: transparent;
color: #2997ff;
border: 2px solid #2997ff;
}
.btn-secondary:hover {
background: #2997ff;
color: white;
}
.btn-danger {
background: #ff3b30;
color: white;
}
.btn-danger:hover {
background: #d63027;
}
.btn-small {
padding: 8px 16px;
font-size: 13px;
}
.status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 980px;
font-size: 12px;
font-weight: 500;
background: rgba(41, 151, 255, 0.15);
color: #2997ff;
}
.status-badge.inactive {
background: rgba(134, 134, 139, 0.15);
color: #86868b;
}
@media (max-width: 768px) {
.form-row {
grid-template-columns: 1fr;
}
.list-item {
flex-direction: column;
align-items: flex-start;
}
.list-item-actions {
width: 100%;
justify-content: flex-end;
}
}