:root {
    --bg-dark: #1e2125;
    --bg-light: #282c31;
    --primary: #3490dc;
    --text-color: #d1d5db;
    --text-muted: #8390a2;
    --border-color: #3d434d;
    --sidebar-bg: #34495e;
    --sidebar-width: 260px;
    --success: #2ecc71;
    --error: #e74c3c;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg-dark); color: var(--text-color); margin: 0; }
.auth-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 1rem; }
.card { background: var(--bg-light); padding: 2rem; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border: 1px solid var(--border-color); width: 100%; max-width: 500px; box-sizing: border-box; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background-color: var(--sidebar-bg); color: #ecf0f1; display: flex; flex-direction: column; position: fixed; height: 100%; }
.sidebar-header { padding: 1.5rem; font-size: 1.5rem; font-weight: bold; text-align: center; background-color: rgba(0,0,0,0.2); }
.sidebar nav { flex-grow: 1; }
.sidebar nav a { display: block; padding: 1rem 1.5rem; color: #ecf0f1; text-decoration: none; transition: background-color 0.2s; border-left: 3px solid transparent; }
.sidebar nav a:hover { background-color: rgba(255,255,255,0.1); }
.sidebar nav a.active { background-color: var(--primary); border-left-color: #ecf0f1; }
.sidebar nav a i { margin-right: 10px; width: 20px; text-align: center; }
.sidebar nav p { padding: 1.5rem 1.5rem 0.5rem; font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); }
.sidebar-footer { padding: 1rem; font-size: 0.8rem; text-align: center; color: var(--text-muted); }
.content { margin-left: var(--sidebar-width); flex-grow: 1; padding: 2rem; }
.content .card { max-width: none; }
h1, h2 { border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 1.5rem; color: #fff; }
h1 i, h2 i { color: var(--primary); margin-right: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
th { color: var(--text-muted); font-size: 0.9rem; }
td img { width: 40px; height: 40px; border-radius: 4px; vertical-align: middle; image-rendering: pixelated; background: var(--bg-dark); }
.actions { text-align: right; white-space: nowrap; }
.icon-btn { color: var(--text-muted); text-decoration: none; margin-left: 1rem; font-size: 1.1rem; }
.icon-btn:hover { color: var(--primary); }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
input[type="text"], input[type="password"], input[type="file"], select { width: 100%; padding: 0.75rem; border-radius: 5px; border: 1px solid var(--border-color); background-color: var(--bg-dark); color: var(--text-color); box-sizing: border-box; font-size: 1rem; }
button, .button-link { display: inline-block; padding: 0.8rem 1.5rem; background-color: var(--primary); border: none; border-radius: 5px; color: white; font-size: 1rem; font-weight: bold; cursor: pointer; text-align: center; text-decoration: none; transition: background-color 0.2s; }
button:hover, .button-link:hover { background-color: #277bc0; }
.button-link { background: var(--text-muted); margin-left: 1rem; }
.form-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); }
.form-footer a { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.flash-success { background-color: var(--success); color: white; padding: 1rem; border-radius: 5px; margin-bottom: 1.5rem; }
.flash-error { background-color: var(--error); color: white; padding: 1rem; border-radius: 5px; margin-bottom: 1.5rem; }
.link-input {
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--success); /* Zielony kolor dla linku */
    border: 1px dashed var(--border-color);
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
}
.link-input:focus {
    outline: 2px solid var(--primary);
}