173 lines
3.5 KiB
CSS
173 lines
3.5 KiB
CSS
/* BackPRO - Compact Modern Dashboard Styles */
|
|
|
|
:root {
|
|
--primary-color: #4f46e5;
|
|
--primary-hover: #4338ca;
|
|
--bg-main: #f8fafc;
|
|
--sidebar-bg: #0f172a;
|
|
--sidebar-link: #94a3b8;
|
|
--sidebar-link-active: #ffffff;
|
|
--sidebar-link-hover: #1e293b;
|
|
--card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
--border-color: #e2e8f0;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-main);
|
|
font-family: 'Inter', sans-serif;
|
|
font-size: 0.875rem; /* Zmniejszona baza (14px zamiast 16px) */
|
|
color: #1e293b;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* Global Links */
|
|
a {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--primary-hover);
|
|
}
|
|
|
|
/* Sidebar - Compact */
|
|
.sidebar {
|
|
background-color: var(--sidebar-bg);
|
|
border-right: 1px solid rgba(255, 255, 255, 0.05);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 1rem 1.25rem; /* Zmniejszony padding */
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.sidebar .nav-link {
|
|
color: var(--sidebar-link);
|
|
padding: 0.5rem 1rem; /* Zmniejszony padding */
|
|
margin: 0.15rem 0.75rem; /* Mniejsze marginesy */
|
|
border-radius: 0.375rem;
|
|
font-weight: 500;
|
|
font-size: 0.85rem; /* Mniejsza czcionka */
|
|
display: flex;
|
|
align-items: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.sidebar .nav-link i {
|
|
font-size: 1rem;
|
|
margin-right: 0.75rem;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Header - Slim */
|
|
header {
|
|
background-color: rgba(255, 255, 255, 0.8) !important;
|
|
backdrop-filter: blur(8px);
|
|
border-bottom: 1px solid var(--border-color) !important;
|
|
padding: 0.5rem 1.25rem !important; /* Odchudzony header */
|
|
}
|
|
|
|
header h5 {
|
|
font-size: 1rem; /* Mniejszy tytuł */
|
|
}
|
|
|
|
/* Cards - Compact */
|
|
.card {
|
|
background-color: #ffffff;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 0.5rem;
|
|
box-shadow: var(--card-shadow);
|
|
}
|
|
|
|
.card-header {
|
|
padding: 0.75rem 1rem; /* Mniejszy padding */
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Tables - High Density */
|
|
.table-container {
|
|
background: #fff;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.table thead th {
|
|
background-color: #f8fafc;
|
|
color: #64748b;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.7rem; /* Bardzo mały, czytelny label */
|
|
letter-spacing: 0.05em;
|
|
padding: 0.6rem 0.85rem; /* Ciasne komórki */
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.table tbody td {
|
|
padding: 0.6rem 0.85rem; /* Ciasne komórki */
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Stats Cards - Compact */
|
|
.stat-card {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.25rem; /* Mniejsza wartość */
|
|
font-weight: 700;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Badges - Small */
|
|
.badge {
|
|
padding: 0.25em 0.6em;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Buttons - Slim */
|
|
.btn {
|
|
border-radius: 0.375rem;
|
|
padding: 0.35rem 0.75rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 0.2rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Main Content Padding */
|
|
main.p-4 {
|
|
padding: 1.25rem !important; /* Mniejszy margines główny */
|
|
}
|
|
|
|
/* Forms - Compact */
|
|
.form-control, .form-select {
|
|
padding: 0.4rem 0.6rem;
|
|
font-size: 0.875rem;
|
|
border-radius: 0.375rem;
|
|
}
|
|
|
|
.article-content {
|
|
font-size: 0.95rem; /* Nieco mniejszy tekst artykułu */
|
|
line-height: 1.6;
|
|
}
|