body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.login-box, .confirm-box, .form-container {
    width: 400px;
    margin: 80px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.confirm-box img {
    display: block;
    margin: 0 auto 20px auto;
}

.login-box h2, .confirm-box h2, .form-container h2 {
    margin: 0 0 20px;
    padding: 0;
    text-align: center;
}

.textbox {
    position: relative;
    margin-bottom: 30px;
}

.textbox input {
    width: calc(100% - 22px);
    padding: 10px;
    background: #f4f4f4;
    border: none;
    outline: none;
    color: #333;
}

.textbox input[type="text"], .textbox input[type="password"] {
    border-bottom: 2px solid #aaa;
}

.btn {
    width: 100%;
    background: #333;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}

.btn:hover {
    background: #555;
}

.menu {
    background: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
}

.menu a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}

.menu a:hover {
    text-decoration: underline;
}

.content {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status.szara { background: gray; }
.status.niebieska { background: blue; }
.status.czerwona { background: red; }
.status.zielona { background: green; }

button, a {
    background-color: #333;
    color: white;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    margin: 2px 0;
}

button:hover, a:hover {
    background-color: #555;
}

input[type="submit"] {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px 0;
}

input[type="submit"]:hover {
    background-color: #555;
}

input[type="submit"][name="rezygnuje"] {
    background-color: red;
    color: white;
}

input[type="submit"][name="rezygnuje"]:hover {
    background-color: darkred;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
}

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

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

button.details-button {
    background-color: orange;
}

a.email-button {
    background-color: blue;
    color: white;
    text-decoration: none;
    padding: 5px;
}

button.copy-link-button {
    background-color: green;
    color: white;
    border: none;
    padding: 5px;
}

a.delete-button {
    background-color: red;
    color: white;
    text-decoration: none;
    padding: 5px;
}

/* Specific styles for confirm.php */
.button-group {
    text-align: center;
}

.button-group input {
    margin: 5px;
    width: calc(50% - 10px);
    display: inline-block;
}

.sponsor-box {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sponsor-box table {
    width: 100%;
    table-layout: fixed;
}

.sponsor-box td {
    border: none !important;
    width: 16.66%; /* Six logos per row */
    text-align: center;
    vertical-align: middle;
}

.sponsor-box a {
    display: block;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.sponsor-box a:hover {
    background: none !important;
}

.sponsor-box img {
    max-height: 50px; /* Max height for logos */
    max-width: 100%;
    height: auto;
    width: auto;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo-gallery img {
    max-height: 50px;
    max-width: 100%;
    display: block;
}

.logo-item {
    display: inline-block;
    text-align: center;
    margin: 10px;
}

.logo-gallery table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: transparent;
    box-shadow: none;
}

.logo-gallery td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.logo-gallery th {
    padding: 10px;
    text-align: center;
}

.green-button {
    background-color: green !important;
    color: white !important;
}

.red-button {
    background-color: red !important;
    color: white !important;
}

.green-button:hover {
    background-color: darkgreen !important;
}

.red-button:hover {
    background-color: darkred !important;
}

/* Dodane style dla przycisków sponsor_logos */
.sponsor-box a {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}

.sponsor-box a:hover {
    background-color: transparent !important;
}

.sponsor-box img {
    box-shadow: none !important;
}

.sponsor-box td {
    border: none !important;
}

.actions {
    display: flex;
    flex-direction: row;
    gap: 5px; /* Opcjonalnie, aby dodać odstępy między przyciskami */
}

.actions button,
.actions a {
    flex: 1;
    margin: 0 2px; /* Opcjonalnie, aby dodać mały margines między przyciskami */
}
