2354
This commit is contained in:
@@ -0,0 +1,621 @@
|
||||
/* ══════════════════════════════════
|
||||
ADMIN PANEL STYLES - ONAPB
|
||||
══════════════════════════════════ */
|
||||
|
||||
/* ── Variables ── */
|
||||
:root {
|
||||
--admin-sidebar-w: 260px;
|
||||
--admin-primary: #b00000;
|
||||
--admin-primary-dark: #8b0000;
|
||||
--admin-bg: #f0f2f5;
|
||||
--admin-sidebar-bg: #1a1a2e;
|
||||
--admin-sidebar-hover: #16213e;
|
||||
--admin-sidebar-active: #b00000;
|
||||
--admin-card-bg: #ffffff;
|
||||
--admin-topbar-h: 60px;
|
||||
--admin-text: #333;
|
||||
--admin-muted: #6c757d;
|
||||
--admin-border: #e0e0e0;
|
||||
--admin-shadow: 0 2px 12px rgba(0,0,0,0.08);
|
||||
--admin-radius: 10px;
|
||||
}
|
||||
|
||||
/* ── Typography ── */
|
||||
body {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
background: var(--admin-bg);
|
||||
color: var(--admin-text);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* ── Layout ── */
|
||||
.admin-wrapper {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* ── Sidebar ── */
|
||||
.admin-sidebar {
|
||||
width: var(--admin-sidebar-w);
|
||||
background: var(--admin-sidebar-bg);
|
||||
color: #ccc;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
z-index: 1050;
|
||||
overflow-y: auto;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
padding: 20px 16px 10px;
|
||||
text-align: center;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.08);
|
||||
}
|
||||
|
||||
.sidebar-logo {
|
||||
max-height: 80px;
|
||||
margin: 0 auto 8px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sidebar-title {
|
||||
display: block;
|
||||
font-family: 'Bebas Neue', sans-serif;
|
||||
font-size: 1.3rem;
|
||||
letter-spacing: 3px;
|
||||
color: var(--admin-primary);
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.sidebar-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 20px;
|
||||
color: #b0b0c0;
|
||||
text-decoration: none;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 0.88rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
border-left: 3px solid transparent;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.sidebar-link:hover {
|
||||
background: var(--admin-sidebar-hover);
|
||||
color: #fff;
|
||||
border-left-color: var(--admin-primary);
|
||||
}
|
||||
|
||||
.sidebar-link.active {
|
||||
background: rgba(176, 0, 0, 0.15);
|
||||
color: #fff;
|
||||
border-left-color: var(--admin-primary);
|
||||
}
|
||||
|
||||
.sidebar-link i {
|
||||
font-size: 1.15rem;
|
||||
width: 22px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sidebar-divider {
|
||||
border-color: rgba(255,255,255,0.08);
|
||||
margin: 8px 16px;
|
||||
}
|
||||
|
||||
/* ── Main ── */
|
||||
.admin-main {
|
||||
flex: 1;
|
||||
margin-left: var(--admin-sidebar-w);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* ── Topbar ── */
|
||||
.admin-topbar {
|
||||
height: var(--admin-topbar-h);
|
||||
background: var(--admin-card-bg);
|
||||
border-bottom: 1px solid var(--admin-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 24px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1020;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.04);
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
color: var(--admin-text);
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.topbar-greeting {
|
||||
font-size: 0.95rem;
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
/* ── Content ── */
|
||||
.admin-content {
|
||||
padding: 24px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* ── Cards ── */
|
||||
.admin-card {
|
||||
background: var(--admin-card-bg);
|
||||
border-radius: var(--admin-radius);
|
||||
box-shadow: var(--admin-shadow);
|
||||
border: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-card .card-header {
|
||||
background: var(--admin-card-bg);
|
||||
border-bottom: 2px solid var(--admin-border);
|
||||
padding: 16px 20px;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.admin-card .card-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* ── Stat Cards ── */
|
||||
.stat-card {
|
||||
background: var(--admin-card-bg);
|
||||
border-radius: var(--admin-radius);
|
||||
box-shadow: var(--admin-shadow);
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
border-left: 4px solid var(--admin-primary);
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 6px 20px rgba(0,0,0,0.12);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.5rem;
|
||||
color: #fff;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stat-icon.clubes { background: linear-gradient(135deg, #b00000, #d32f2f); }
|
||||
.stat-icon.equipos { background: linear-gradient(135deg, #1565c0, #42a5f5); }
|
||||
.stat-icon.jugadores{ background: linear-gradient(135deg, #2e7d32, #66bb6a); }
|
||||
.stat-icon.eventos { background: linear-gradient(135deg, #e65100, #ff9800); }
|
||||
.stat-icon.promos { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
|
||||
.stat-icon.noticias { background: linear-gradient(135deg, #00838f, #26c6da); }
|
||||
|
||||
.stat-info h3 {
|
||||
font-size: 1.8rem;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
color: var(--admin-text);
|
||||
}
|
||||
|
||||
.stat-info p {
|
||||
margin: 0;
|
||||
font-size: 0.85rem;
|
||||
color: var(--admin-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
/* ── Tables ── */
|
||||
.admin-table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.admin-table thead th {
|
||||
background: #f8f9fa;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
color: var(--admin-muted);
|
||||
padding: 12px 16px;
|
||||
border-bottom: 2px solid var(--admin-border);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-table tbody td {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
vertical-align: middle;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.admin-table tbody tr:hover {
|
||||
background: #fafbfc;
|
||||
}
|
||||
|
||||
.admin-table tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* ── Forms ── */
|
||||
.admin-form .form-label {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 0.82rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.3px;
|
||||
color: var(--admin-muted);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.admin-form .form-control,
|
||||
.admin-form .form-select {
|
||||
border-radius: 8px;
|
||||
border: 1.5px solid var(--admin-border);
|
||||
padding: 10px 14px;
|
||||
font-size: 0.92rem;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.admin-form .form-control:focus,
|
||||
.admin-form .form-select:focus {
|
||||
border-color: var(--admin-primary);
|
||||
box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* ── Buttons ── */
|
||||
.btn-admin {
|
||||
background: var(--admin-primary);
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
border-radius: 8px;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.btn-admin:hover {
|
||||
background: var(--admin-primary-dark);
|
||||
color: #fff;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn-admin-outline {
|
||||
background: transparent;
|
||||
color: var(--admin-primary);
|
||||
border: 2px solid var(--admin-primary);
|
||||
padding: 8px 16px;
|
||||
border-radius: 8px;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 0.82rem;
|
||||
text-transform: uppercase;
|
||||
transition: all 0.2s ease;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn-admin-outline:hover {
|
||||
background: var(--admin-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Action buttons in table */
|
||||
.btn-action {
|
||||
padding: 6px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 0.82rem;
|
||||
border: none;
|
||||
transition: all 0.2s ease;
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.btn-action.edit {
|
||||
background: #e3f2fd;
|
||||
color: #1565c0;
|
||||
}
|
||||
.btn-action.edit:hover {
|
||||
background: #1565c0;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-action.delete {
|
||||
background: #ffebee;
|
||||
color: #c62828;
|
||||
}
|
||||
.btn-action.delete:hover {
|
||||
background: #c62828;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ── Page Header ── */
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 24px;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.page-header h2 {
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
color: var(--admin-text);
|
||||
}
|
||||
|
||||
/* ── Badge ── */
|
||||
.badge-admin {
|
||||
padding: 4px 10px;
|
||||
border-radius: 20px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ── Empty State ── */
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 48px 20px;
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
.empty-state i {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 12px;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.empty-state p {
|
||||
font-size: 1rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ── Search ── */
|
||||
.search-box {
|
||||
position: relative;
|
||||
max-width: 320px;
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
padding-left: 40px;
|
||||
border-radius: 20px;
|
||||
border: 1.5px solid var(--admin-border);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.search-box i {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
/* ── QR Scanner ── */
|
||||
.qr-scanner-area {
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.qr-result {
|
||||
margin-top: 20px;
|
||||
padding: 20px;
|
||||
border-radius: var(--admin-radius);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qr-result.success {
|
||||
background: #e8f5e9;
|
||||
border: 2px solid #4caf50;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qr-result.error {
|
||||
background: #ffebee;
|
||||
border: 2px solid #f44336;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* ── Overlay ── */
|
||||
.sidebar-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0,0,0,0.5);
|
||||
z-index: 1040;
|
||||
}
|
||||
|
||||
.sidebar-overlay.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* ── Responsive ── */
|
||||
@media (max-width: 991px) {
|
||||
.admin-sidebar {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.admin-sidebar.show {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.admin-content {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.stat-info h3 {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.admin-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin-table tbody tr {
|
||||
display: block;
|
||||
margin-bottom: 12px;
|
||||
border: 1px solid var(--admin-border);
|
||||
border-radius: 8px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.admin-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 6px 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.admin-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
font-size: 0.8rem;
|
||||
color: var(--admin-muted);
|
||||
text-transform: uppercase;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Pagination ── */
|
||||
.pagination {
|
||||
margin-bottom: 0;
|
||||
gap: 4px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pagination .page-link {
|
||||
color: var(--admin-text);
|
||||
background-color: #fff;
|
||||
border: 1px solid var(--admin-border);
|
||||
border-radius: 6px !important;
|
||||
margin: 0;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 500;
|
||||
padding: 6px 12px;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 36px;
|
||||
}
|
||||
|
||||
.pagination .page-link:hover {
|
||||
background-color: var(--admin-bg);
|
||||
border-color: var(--admin-primary);
|
||||
color: var(--admin-primary);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.pagination .page-item.active .page-link {
|
||||
background-color: var(--admin-primary);
|
||||
border-color: var(--admin-primary);
|
||||
color: #fff;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.pagination .page-item.disabled .page-link {
|
||||
color: #bdbdbd;
|
||||
background-color: #fcfcfc;
|
||||
border-color: #eee;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Fix huge arrows in some Laravel pagination templates */
|
||||
.pagination svg,
|
||||
nav svg,
|
||||
[role="navigation"] svg {
|
||||
width: 20px !important;
|
||||
height: 20px !important;
|
||||
max-width: 20px !important;
|
||||
max-height: 20px !important;
|
||||
display: inline-block !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Hide the redundant text and large flex containers from Tailwind template if it leaks */
|
||||
nav[role="navigation"] > div:first-child {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.pagination .flex.justify-between.flex-1 {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.pagination .page-link {
|
||||
padding: 4px 10px;
|
||||
font-size: 0.75rem;
|
||||
min-width: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Delete form inline ── */
|
||||
.delete-form {
|
||||
display: inline;
|
||||
}
|
||||
Reference in New Issue
Block a user