body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f5f5f5;
    font-family: system-ui, sans-serif;
}
.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    width: 320px;
}
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1rem;
}
input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
button {
    width: 100%;
    padding: 0.75rem;
    background: #1e73be;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background: #155d96;
}
.error {
    color: red;
    margin-top: 0.5rem;
    text-align: center;
}
/* reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
    height: 100%;
    width: 100%;
    background: #fff; /* pełne tło białe */
}

/* layout ogólny */
.layout {
    display: flex;
    height: 100vh;   /* pełna wysokość okna */
    width: 100vw;    /* pełna szerokość okna */
    overflow: hidden;
}

/* sidebar */
.sidebar {
    width: 220px;
    background: #2c3e50; /* ciemny granat */
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    color: white;
    transition: background 0.2s;
}

.sidebar a:hover {
    background: #34495e;
}

.sidebar a.active {
    background: #3498db; /* niebieski */
}

/* prawa część */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f9f9f9; /* jasne tło dla zawartości */
}

/* topbar */
.topbar {
    height: 56px;
    background: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.95rem;
}

.topbar strong {
    margin-left: 0.25rem;
}

.topbar button {
    margin-left: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* główna strona */
.page {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.page h1 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
}

.upload-box{
    padding: 20px;
    border: 1px solid #34495e;
    border-radius: 5px;
}

.result{
    width: 70%;
}