/* 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); } /* App Shell */ .app-shell { display: flex; min-height: 100vh; } .app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 260px; transition: margin-left 0.25s ease; } .app-shell.is-collapsed .app-main { margin-left: 52px; } /* Sidebar */ .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; background-color: var(--sidebar-bg); border-right: 1px solid rgba(255, 255, 255, 0.05); z-index: 1000; display: flex; flex-direction: column; transition: width 0.25s ease; overflow: hidden; } .app-shell.is-collapsed .sidebar { width: 52px; } .sidebar__brand { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); } .sidebar__brand-text { color: #e2e8f0; font-size: 1.1rem; font-weight: 400; letter-spacing: -0.01em; white-space: nowrap; } .sidebar__brand-text strong { font-weight: 700; color: #fff; } .sidebar__collapse-btn { background: none; border: none; color: #64748b; cursor: pointer; padding: 4px; border-radius: 4px; transition: color 0.15s, background 0.15s; display: flex; align-items: center; justify-content: center; } .sidebar__collapse-btn:hover { color: #e2e8f0; background: rgba(255,255,255,0.06); } .app-shell.is-collapsed .sidebar__collapse-icon { transform: rotate(180deg); } .app-shell.is-collapsed .sidebar__brand-text, .app-shell.is-collapsed .sidebar__label, .app-shell.is-collapsed .sidebar__toggle-arrow, .app-shell.is-collapsed .sidebar__user-info, .app-shell.is-collapsed .sidebar__group-links { display: none; } /* Sidebar Nav */ .sidebar__nav { flex: 1; overflow-y: auto; padding: 8px 0; display: flex; flex-direction: column; gap: 4px; } .sidebar__group { margin: 0; } .sidebar__group > summary { list-style: none; } .sidebar__group > summary::-webkit-details-marker { display: none; } .sidebar__group-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: #94a3b8; font-size: 0.835rem; font-weight: 500; cursor: pointer; border-radius: 6px; margin: 0 8px; transition: color 0.15s, background 0.15s; user-select: none; } .sidebar__group-toggle:hover { color: #e2e8f0; background: #1b2a3f; } .sidebar__group.is-active > .sidebar__group-toggle { color: #e2e8f0; } .sidebar__toggle-arrow { margin-left: auto; transition: transform 0.2s; opacity: 0.5; } .sidebar__group[open] > .sidebar__group-toggle .sidebar__toggle-arrow { transform: rotate(180deg); } .sidebar__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; opacity: 0.7; } .sidebar__label { white-space: nowrap; } .sidebar__group-links { padding: 2px 0 4px 0; } .sidebar__sublink { display: block; padding: 6px 14px 6px 52px; color: #94a3b8; font-size: 0.8rem; font-weight: 400; text-decoration: none; border-radius: 6px; margin: 1px 8px; transition: color 0.15s, background 0.15s; } .sidebar__sublink:hover { color: #e2e8f0; background: #1b2a3f; } .sidebar__sublink.is-active { color: #fff; background: #2e4f93; font-weight: 500; } /* Sidebar Footer */ .sidebar__footer { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.06); } .sidebar__user { display: flex; align-items: center; gap: 10px; } .sidebar__avatar { width: 32px; height: 32px; border-radius: 50%; background: #334155; color: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; flex-shrink: 0; } .sidebar__user-name { color: #e2e8f0; font-size: 0.8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar__user-logout { color: #64748b; font-size: 0.75rem; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: color 0.15s; } .sidebar__user-logout:hover { color: #e2e8f0; } /* Sidebar Backdrop (mobile) */ .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; } @media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .app-main { margin-left: 0; } .app-shell.sidebar-open .sidebar { transform: translateX(0); } .app-shell.sidebar-open .sidebar-backdrop { display: block; } } /* 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; }