* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #e6f0f6; /* Jasny odcień koloru bazowego */
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%); /* Jasny gradient */
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px;
}

.header h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    margin: 0;
    color: #37628a; /* Dopasowanie koloru do reszty strony */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Delikatny cień */
    letter-spacing: 2px;
    animation: fadeIn 1.5s ease-in-out; /* Usunięcie animacji pulse */
}

.header h1 img {
    max-width: 200px; /* Powiększenie logo o 100% */
    height: auto;
    margin-right: 15px; /* Odstęp między logo a tekstem */
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Main content area */
.main-content {
    display: flex;
    flex: 1;
    margin: 0 20px;
}

/* Sidebar menu */
.sidebar {
    width: 20%;
    background-color: #d1e0ec; /* Jasny odcień koloru bazowego */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu {
    list-style-type: none;
    padding: 0;
}

.menu li {
    margin-bottom: 10px;
}

.menu-item {
    display: block;
    padding: 12px 15px;
    background-color: #4a7a9d; /* Kolor bazowy */
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.menu-item:hover, .menu-item.active {
    background-color: #37628a; /* Kolor bazowy */
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 120, 215, 0.3);
    transform: translateY(-2px);
}

/* Content area */
.content {
    flex: 1;
    padding: 20px;
    background-color: white;
    margin-left: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4a7a9d; /* Kolor bazowy */
    color: white;
}

td {
    background-color: #f9f9f9;
}

tr:nth-child(even) td {
    background-color: #f2f2f2;
}

tr:hover td {
    background-color: #d1e7dd;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer styles */
.footer {
    background-image: url('https://tompolkepno.pl/wp-content/themes/tompol/images/bottom-footer-background.png');
    background-size: cover;
    color: white;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin: 10px;
}

.footer-section h3 {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading animation */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.loader::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #d1e0ec; /* Jasny odcień koloru bazowego */
    border-top-color: #37628a; /* Kolor bazowy */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    .content {
        margin-left: 0;
    }
}
