body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

nav {
    background-color: #F5CD00;
    color: #333;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

nav a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
    text-decoration: none;
}

.content {
    padding: 25px;
    max-width: 800px;
    margin: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h1 {
    color: #333;
    margin-bottom: 25px;
    border-bottom: 2px solid #F5CD00;
    padding-bottom: 10px;
}

/* Przyciski */
.button {
    display: inline-block;
    padding: 12px 24px;
    color: #333;
    background-color: #F5CD00;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px 10px 10px 0;
    text-align: center;
    min-width: 120px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button:hover {
    background-color: #E6C000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Przyciski w rzędzie */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

/* Przyciski na stronie głównej */
.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.home-buttons .button {
    margin: 0;
}

/* Formularz */
form {
    margin: 20px 0;
}

form p {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #F5CD00;
    box-shadow: 0 0 5px rgba(245, 205, 0, 0.3);
}

.error-message {
    color: #E74C3C;
    font-weight: bold;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #E74C3C;
}

.info-message {
    color: #3498DB;
    padding: 10px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #3498DB;
}

/* Lista voucherów */
.voucher-list {
    list-style: none;
    padding: 0;
}

.voucher-item {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #F5CD00;
}

.voucher-details {
    list-style: none;
    padding: 0;
}

.voucher-details li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.voucher-details li strong {
    color: #333;
    display: inline-block;
    min-width: 120px;
}

/* Dodatkowe kolory akcentów */
.accent-color {
    color: #F5CD00;
}

.accent-bg {
    background-color: #F5CD00;
    color: #333;
}

.accent-border {
    border-color: #F5CD00 !important;
}

/* QR Reader */
#qr-reader {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Szczegóły vouchera z kodem QR */
.voucher-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.voucher-info {
    flex: 1;
    min-width: 300px;
}

.qr-code-container {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.qr-code-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.qr-code-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Tabela voucherów */
.voucher-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.voucher-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    border-radius: 5px;
    overflow: hidden;
}

.voucher-table thead th {
    background-color: #F5CD00;
    color: #333;
    font-weight: bold;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.voucher-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.voucher-table tbody tr:hover {
    background-color: #f9f9f9;
}

.voucher-table tbody tr.redeemed {
    background-color: #f9f9f9;
    color: #777;
}

.voucher-table tbody tr:last-child {
    border-bottom: none;
}

.voucher-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Kolumny tabeli */
.code-column {
    width: 15%;
}

.amount-column {
    width: 15%;
    text-align: left;
    white-space: nowrap;
}

.description-column {
    width: 30%;
}

.date-column {
    width: 15%;
    white-space: nowrap;
}

.status-column {
    width: 12%;
    text-align: center;
}

.actions-column {
    width: 13%;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #2ECC71;
    color: white;
}

.status-badge.redeemed {
    background-color: #95A5A6;
    color: white;
}

.button-small {
    display: inline-block;
    padding: 5px 10px;
    background-color: #F5CD00;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button-small:hover {
    background-color: #E6C000;
    text-decoration: none;
}

/* Paginacja */
.pagination {
    margin: 25px 0;
    text-align: center;
}

.pagination .step-links {
    display: inline-block;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination-link {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.pagination-link:hover {
    background-color: #F5CD00;
    text-decoration: none;
}

.current-page {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 10px;
    font-weight: bold;
}