/* Reset i font */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    padding: 20px;
    color: #333;
}

/* Wrapper */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Przyciski */
.btn {
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

/* Przycisk główny */
.btn-primary {
    background-color: #4caf50;
    color: white;
    border: none;
}
.btn-primary:hover {
    background-color: #43a047;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Przycisk drugorzędny */
.btn-secondary {
    background-color: #fff;
    color: #00395e;
    border: 2px solid #00395e;
}
.btn-secondary:hover {
    background-color: #ff9523;
    color: white;
    border: 2px solid #00395e;
}

/* Przycisk niebieski */
.btn-blue {
    background-color: #00395e;
    color: white;
    border: 2px solid #00395e;
}
.btn-blue:hover {
    background-color: #ff9523;
    color: white;
    border: 2px solid #00395e;
}

/* Przycisk czerwony */
.btn-danger {
    background-color: #e53935;
    color: white;
}
.btn-danger:hover {
    background-color: #d32f2f;
}

/* Grupowanie przycisków */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.button-group.left {
	margin:20px 0px;
    justify-content: flex-start;
}
.button-group.right {
	margin:20px 0px;
    justify-content: flex-end;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}
.tabs a {
    padding: 10px 20px;
    background-color: #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: background-color 0.2s;
}
.tabs a.active {
    background-color: #4caf50;
    color: white;
}
.tabs a:hover {
    background-color: #cfcfcf;
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 25px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    table-layout: auto;
}
th, td {
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: middle;
    font-size: 0.95em;
    min-width: 100px;
    word-break: break-word;
}
th.centered, td.centered {
    text-align: center;
    width: 120px;
}
th {
    background-color: #00395e;
    font-weight: 600;
	color: #fff;
}
tr:hover {
    background-color: #f9f9f9;
}
tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Sortowanie */
.sort-icons {
    font-size: 0.85em;
    margin-left: 6px;
    color: #fff;
    cursor: pointer;
}
.sort-icons span.active {
    color: #ff9523;
    font-weight: bold;
}

/* Filtry */
.filter-wrapper {
    position: relative;
    margin-top: 4px;
}
.filter-input,
.filter-select {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    appearance: none;
    background-color: white;
}
.filter-select {
    padding-right: 30px;
    white-space: nowrap;
}
.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #888;
    display: none;
}
.filter-wrapper.show-clear .clear-btn {
    display: block;
}

/* Liczniki */
.counter {
    font-weight: 500;
    margin: 12px 0;
    color: #555;
    font-size: 0.95em;
}

/* Ikony akcji */
.btn-icon {
    display: inline-block;
    font-size: 1.1em;
    padding: 6px;
    color: #555;
}
.btn-icon:hover {
    color: #000;
}
h1 {
	color:#00395e !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }
    th, td {
        font-size: 0.85em;
        padding: 10px;
    }
    .admin-access {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }
}
