/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-image: url('assets/background.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    width: 100%;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.30); /* Semi-transparent background */
    text-align: center;
    z-index: 1000; /* Make sure it stays on top */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
}

header h1 {
    margin: 0;
    font-size: 3em;
    color: white;
    text-shadow: 2px 2px 4px #000000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: rgba(200, 200, 200, 0.5);
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    flex: 1; /* Allow main content to grow and fill the remaining space */
    overflow: auto;
    padding: 20px;
}

#tabs {
    padding: 20px;
    background-color: rgba(200, 200, 200, 0.5); /* Add transparency to the tabs background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-height: calc(100vh - 100px); /* Ensure it spans to the bottom, assuming header is approx 100px */
}

#tabs ul {
    list-style: none;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.30); /* Semi-transparent background */
    border-radius: 10px;
    display: inline-flex;
    width: auto;
    margin: 0 0; /* Center the tabs */
}

#tabs ul li {
    margin: 0 5px;
}

#tabs ul li a {
    color: rebeccapurple;
    text-shadow: 1px 1px 1px #090909;
    font-size: 1.2em;
    padding: 2px 2px;
    display: inline-block;
    background-color: rgba(220, 200, 200, 0.30);
}

#tabs ul li a:hover {
    text-decoration: underline;
}

form {
    max-width: 400px;
    margin: 100px auto; /* Adjust margin to account for fixed header */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Add transparency to form background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

input[type="text"],
input[type="password"] {
    width: 95%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type="submit"] {
    padding: 10px 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

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

/* Stylish table */
.styled-table {
    width: 100%;                /* Make the table wider */
    max-width: 1200px;          /* Optional: Limit the maximum width */
    margin: 20px auto;          /* Center the table and add vertical margin */
    background-color: rgba(255, 255, 255, 0.5); /* Slightly transparent background */
    border-collapse: collapse;  /* Remove gaps between table cells */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);  /* Optional: Add a slight shadow */
    border-radius: 5px;         /* Optional: Rounded corners */
    overflow: hidden;           /* Ensure rounded corners are respected */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Light border around the table */
}

.styled-table thead tr {
    background-color: #009879;  /* Header Background Color */
    color: #ffffff;             /* Header Text Color */
    text-align: center;         /* Center align header text */
    font-weight: bold;          /* Make font bold */
}

.styled-table th, .styled-table td {
    padding: 12px 15px;         /* Add padding to the table cells */
    border: 1px solid rgba(0, 0, 0, 0.5); /* Light border for each cell */
}

.styled-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Light border at the bottom of each row */
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.05); /* Optional: Slightly different background for even rows */
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;    /* Optional: Add a thicker border to the last row */
}

.styled-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.2); /* Optional: Different background on hover */
}

/* Image Column */
.styled-table td img {
    width: 80px;            /* Set width of the images */
    height: 80px;
    cursor: pointer;         /* Change cursor to pointer on hover */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-container {
    max-width: 600px;
    margin: 5px auto; /* Center the form and add vertical margin */
    padding: 5px;
    background-color: rgba(200, 200, 200, 0.5); /* Light background with slight transparency */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Light shadow for a subtle 3D effect */
    border-radius: 5px; /* Rounded corners */
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #009879; /* Optional: theme color for the heading */
}

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

.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="number"],
.form-container input[type="date"],
.form-container textarea {
    width: calc(100% - 22px); /* Full width minus padding and border */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding and border width are included in the element's total width and height */
}

.form-container input[type="submit"] {
    width: 100%;
    padding: 10px 0;
    background-color: #009879; /* Theme color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

.form-container input[type="submit"]:hover {
    background-color: #007f67; /* Darker variant of the theme color */
}

/* Add form fieldset styling */
.form-container fieldset {
    border: none;  /* Remove default fieldset border */
    margin-bottom: 10px;
}

.form-container legend {
    font-weight: bold;
    margin-bottom: 10px;
    color: #009879; /* Optional: theme color for the legend */
}

.form-container .radio-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.form-container .radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.form-container .radio-group input[type="radio"] {
    margin-right: 10px;
}

/* Additional margin for the file input */
.form-container input[type="file"] {
    margin-bottom: 10px;
}

/* Add styles for the 'Aktualny bilans' tab */
#tabs-3 {
    text-align: left; /* Center align text in the balance tab */
}

/* Style the balance output */
.balance-output {
    font-size: 2em; /* Large font size for better readability */
    font-weight: bold;
    color: darkred; /* Use the same green color as the table header */
    margin: 20px 0; /* Add margin for spacing */
}