/* Podstawowe style */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
}

/* Kontener logowania */
.login-container {
    width: 350px;
    margin: 100px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.login-container button:hover {
    background: #45a049;
}

/* Nagłówek */
.header {
    background: #4CAF50;
    color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 2px solid #388E3C;
}

.header h1 {
    margin: 0;
    font-size: 26px;
}

.btn-logout {
    color: #fff;
    text-decoration: none;
    background: #F44336;
    padding: 8px 15px;
    border-radius: 5px;
}

.btn-logout:hover {
    background: #d32f2f;
}

/* Kontener panelu zarządzania */
.dashboard-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

/* Sekcja produktów */
.products-section {
    flex: 3;
    margin-right: 20px;
}

.products-section input {
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.products-section table {
    width: 100%;
    border-collapse: collapse;
}

/* Ograniczenie szerokości i zawijanie tekstu w komórkach tabeli */
.products-section th,
.products-section td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    max-width: 150px; /* Maksymalna szerokość komórki */
    word-wrap: break-word; /* Zawijanie tekstu */
    white-space: normal; /* Zawijanie tekstu */
}

.products-section th {
    background: #4CAF50;
    color: #fff;
}

.products-section td img {
    width: 150px; /* Ustaw szerokość */
    height: 150px; /* Ustaw wysokość */
    object-fit: cover; /* Dopasuj obrazek w kontenerze */
    border-radius: 5px;
}

.products-section a {
    color: #4CAF50;
    text-decoration: none;
}

.products-section a:hover {
    text-decoration: underline;
}

.products-section button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.products-section button:hover {
    background: #45a049;
}

/* Modalne okna */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-image {
    position: relative;
    display: block;
    margin: 0 auto;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Sekcja historii */
.history-section {
    flex: 1;
}

.history-section table {
    width: 100%;
    border-collapse: collapse;
}

.history-section th,
.history-section td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.history-section th {
    background: #4CAF50;
    color: #fff;
}
