/* Zmienne globalne */
:root {
    --primary-color: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary-color: #FFC107;
    --text-color: #333333;
    --text-color-light: #757575;
    --background-color: #F5F5F5;
    --white: #FFFFFF;
    --error-color: #F44336;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --border-color: #dee2e6;

    --font-family: 'Roboto', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 0.875rem;
    --font-size-large: 1.25rem;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --line-height-base: 1.5;
}

/* Reset i podstawowe style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    min-height: 100vh;
}

/* Typografia */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -auto;
}

.col {
    flex: 1 0 0%;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: width 0.3s ease;
}

.site-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.main-nav {
    list-style-type: none;
    padding: 0;
}

.main-nav li {
    margin-bottom: 0.5rem;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease, padding 0.3s ease;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a:focus {
    background-color: var(--primary-color);
    padding-left: 1.25rem;
}

#menuToggle {
    display: none;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 0.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
}

/* Footer */
.main-footer {
    margin-top: auto;
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

#clock {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Komponenty */
.btn {
    display: inline-block;
    font-weight: var(--font-weight-normal);
    color: var(--text-color);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    color: var(--white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    color: var(--white);
    background-color: var(--error-color);
    border-color: var(--error-color);
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Formularze */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-color: var(--border-color);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.form-select::-ms-expand {
    display: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Tabele */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-light);
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table tbody tr:hover {
    background-color: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

/* Stylizacja przycisków akcji */
.btn-group .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: 0.2rem;
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-group .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-group .btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-group .btn-outline-danger:hover {
    background-color: var(--error-color);
    color: var(--white);
}

/* Stylizacja ikon w przyciskach */
.btn-group .btn i {
    font-size: 1rem;
}

/* Responsywność tabeli */
@media (max-width: 768px) {
    .table-responsive {
        border: 0;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
    }

    .table tbody td {
        display: flex;
        flex-direction: column;
        text-align: left;
        padding: 0.75rem 1rem;
        border: none;
        /* Dodane/zmienione właściwości */
        min-height: 60px;
        justify-content: center;
    }

    /* Zmieniony styl dla etykiet */
    .table tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--text-color-light);
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        display: block;
    }

    /* Styl dla wartości */
    .table tbody td>*:not(:first-child) {
        margin-top: 0.25rem;
    }

    /* Specjalne formatowanie dla kolumny akcji */
    .table tbody td:last-child {
        border-top: 1px solid var(--border-color);
        background: rgba(0, 0, 0, 0.02);
        flex-direction: column;
        align-items: stretch;
    }

    .table .btn-group {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .table .btn-group .btn {
        flex: 1;
        padding: 0.5rem;
    }

    /* Dodatkowe style dla lepszej czytelności */
    .table tbody td span {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .table tbody td i {
        margin-right: 0.25rem;
    }
}

/* Nagłówki sekcji */
.section-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Responsywność */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    #menuToggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    /* Styles for larger devices */
}

@media (min-width: 992px) {
    /* Styles for large devices */
}

@media (min-width: 1200px) {
    /* Styles for extra large devices */
}

/* Dodaj te style na końcu istniejącego pliku CSS */

/* Komunikaty systemowe */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

/* Paginacja */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    z-index: 2;
    color: var(--primary-dark);
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

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

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Dostępność */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dodaj te style na końcu istniejącego pliku CSS */

/* Zaawansowane efekty wizualne */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}

.hover-shadow:hover {
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

/* Gradientowe tło */
.bg-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Efekt paralaksy dla tła */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Efekty przejścia */
.transition {
    transition: all 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Zaokrąglone krawędzie */
.rounded {
    border-radius: 0.25rem;
}

.rounded-circle {
    border-radius: 50%;
}

/* Przyciski z ikonami */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
    padding: 5px;
    border-radius: 50%;
    transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.btn-icon i {
    margin-right: 0.5rem;
}

.btn-icon:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.btn-icon.text-danger {
    color: var(--error-color);
}

.btn-icon.text-danger:hover {
    color: var(--error-color-dark);
}

/* Tooltip dla ikon */
.btn-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.btn-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Efekt Ripple dla przycisków */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-group .btn-sm i {
    font-size: 1.2rem;
}

.btn-ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.btn-ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Responsywne obrazy */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Efekt Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Optymalizacja wydajności */
.will-change-transform {
    will-change: transform;
}

/* Zmienne CSS dla łatwego dostosowywania kolorów */
:root {
    --primary-rgb: 76, 175, 80;
    --secondary-rgb: 255, 193, 7;
}

.text-primary {
    color: rgba(var(--primary-rgb), 1);
}

.bg-primary-transparent {
    background-color: rgba(var(--primary-rgb), 0.1);
}

/* Elastyczne siatki */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Responsywne wykresy (przykład dla prostego wykresu słupkowego) */
.chart-bar {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.chart-bar-item {
    width: 40px;
    background-color: var(--primary-color);
    transition: height 0.5s ease;
}



/* Poprawiona dostępność */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Style dla filtrów i wyszukiwania */
.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-filter,
.assignment-filter {
    min-width: 200px;
}

.search-group {
    position: relative;
    width: 300px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    padding-right: 60px;
    /* Zwiększone, aby pomieścić obie ikony */
}

.search-icon,
.clear-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.3s ease;
}



.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--primary-color);
}

.clear-search-icon:hover {
    color: var(--error-color-dark);
}



/* Dodaj te zmienne kolorów, jeśli jeszcze nie istnieją */
:root {
    --error-color-dark: #d32f2f;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--primary-color);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion-item {
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search-suggestion-item:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.company-filter {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-group,
    .company-filter {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Style dla przycisków filtrowania */
.filter-tabs .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-tabs .btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary-color);
}

.filter-tabs .btn-outline-primary.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-tabs .btn:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.filter-tabs .btn:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin-bottom: 0;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header .btn {
        margin-top: 1rem;
        align-self: flex-start;
    }
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-icon i {
    font-size: 1.5rem;
}

.btn-icon:hover {
    background-color: rgba(36, 112, 77, 0.1);
}

.btn-icon.text-danger:hover {
    background-color: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.btn-primary .bx {
    margin-right: 5px;
}

.list-group {
    margin-bottom: 0;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    margin-bottom: -1px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
}

.list-group-item-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-body {
    flex: 1;
}

/* Style dla szczegółów pracownika */
.employee-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.inner-card {
    flex: 1 0 calc(33.333% - 1rem);
    min-width: 250px;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: box-shadow 0.3s ease-in-out;
}

.inner-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.inner-card .card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.inner-card .card-body {
    padding: 1rem;
}

.inner-card strong {
    color: var(--text-color-light);
}

.inner-card p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .inner-card {
        flex-basis: 100%;
    }
}

@media (max-width: 992px) {
    .inner-card {
        flex: 1 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .inner-card {
        flex: 1 0 100%;
    }
}

/* Styles for add employee form */
.form-label {
    font-weight: 500;
    color: var(--text-color-light);
}

.form-control,
.form-select {
    border-color: var(--border-color);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.form-select::-ms-expand {
    display: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.card-header {
    background-color: var(--primary-color) !important;
    color: var(--white);
    padding: 1rem;
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
}



/* Uniwersalne style dla formularzy */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-section {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.form-section:nth-child(1) {
    background-color: rgba(76, 175, 80, 0.05);
    /* Lekko zielonkawe tło dla pierwszej sekcji */
}

.form-section:nth-child(2) {
    background-color: rgba(255, 193, 7, 0.05);
    /* Lekko żółtawe tło dla drugiej sekcji */
}

.form-section:nth-child(3) {
    background-color: rgba(33, 150, 243, 0.05);
    /* Lekko niebieskawe tło dla trzeciej sekcji */
}

.form-section:hover {
    background-color: rgba(0, 0, 0, 0.05);
    /* Ciemniejsze tło przy najechaniu myszką */
}

.section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-section:nth-child(1) .section-title {
    color: #388E3C;
    /* Ciemniejszy odcień zielonego dla tytułu pierwszej sekcji */
}

.form-section:nth-child(2) .section-title {
    color: #FFA000;
    /* Ciemniejszy odcień żółtego dla tytułu drugiej sekcji */
}

.form-section:nth-child(3) .section-title {
    color: #1976D2;
    /* Ciemniejszy odcień niebieskiego dla tytułu trzeciej sekcji */
}

.form-fields {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
}

.form-label.required::after {
    content: '*';
    color: var(--error-color);
    margin-left: 0.25rem;
}

.form-control,
.form-select {
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
}

@media (max-width: 576px) {
    .form-container {
        max-width: 100%;
    }
}

.list-group-item {
    background-color: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item .badge.bg-danger {
    background-color: #F44336 !important;
    color: white !important;
}

.list-group-item .badge.bg-warning {
    background-color: #FF9800 !important;
    color: black !important;
}

.list-group-item .badge.bg-success {
    background-color: #4CAF50 !important;
    color: white !important;
}

.list-group-item .badge.bg-primary {
    background-color: #2196F3 !important;
    color: white !important;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-success {
    color: #28a745;
}

.fw-bold {
    font-weight: bold;
}

/* Dodaj te styles at the end of the existing CSS file */

/* Compact styles for filter form */
.compact-form .form-label-sm {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.compact-form .form-control-sm,
.compact-form .form-select-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    height: calc(1.5em + 0.5rem + 2px);
}

.compact-form .btn-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.compact-form .row {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.compact-form .col-md-3,
.compact-form .col-md-6,
.compact-form .col-sm-6,
.compact-form .col-sm-12 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

#filterPanel {
    transition: all 0.3s ease-in-out;
}

#filterPanel.card {
    border: none;
    background-color: #f8f9fa;
}

#filterPanel .card-body {
    padding: 1rem;
}

@media (max-width: 768px) {

    .compact-form .col-md-3,
    .compact-form .col-md-6 {
        margin-bottom: 0.5rem;
    }
}

.section-header {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.btn-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 0.875rem;
}

.task-title {
    font-weight: 500;
    color: #333;
}

.task-details {
    font-size: 0.9rem;
}

.task-main-row {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.list-group-item {
    padding: 1rem;
}

.task-item {
    transition: background-color 0.2s ease;
    padding: 1rem 1.25rem;
}

.task-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.task-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.task-details {
    color: var(--text-color-light);
}

.priority-icon {
    width: 24px;
    text-align: center;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Responsywna tabela zadań */
@media (max-width: 768px) {
    .table thead {
        display: none;
        /* Ukryj nagłówki na mobile */
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        position: relative;
    }

    .table tbody td {
        display: flex;
        flex-direction: column;
        text-align: left;
        padding: 0.75rem 1rem;
        border: none;
        /* Dodane/zmienione właściwości */
        min-height: 60px;
        justify-content: center;
    }

    /* Zmieniony styl dla etykiet */
    .table tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--text-color-light);
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        display: block;
    }

    /* Styl dla wartości */
    .table tbody td>*:not(:first-child) {
        margin-top: 0.25rem;
    }

    /* Specjalne formatowanie dla kolumny akcji */
    .table tbody td:last-child {
        border-top: 1px solid var(--border-color);
        background: rgba(0, 0, 0, 0.02);
        flex-direction: column;
        align-items: stretch;
    }

    .table .btn-group {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .table .btn-group .btn {
        flex: 1;
        padding: 0.5rem;
    }

    /* Dodatkowe style dla lepszej czytelności */
    .table tbody td span {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .table tbody td i {
        margin-right: 0.25rem;
    }
}

/* Style dla podmenu */
.sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 2px;
    margin-bottom: 5px;
}

.main-nav li:hover>.sub-menu {
    display: block;
}

.sub-menu li a {
    padding: 8px 15px;
    font-size: 0.9em;
    color: #fff;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
    border-left: 3px solid transparent;
}

.sub-menu li a:hover {
    color: #fff;
    background-color: var(--primary-color);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.6);
    border-left: 3px solid #fff;
}

/* Dodaj te style na końcu istniejącego pliku CSS */

/* Kompaktowe style dla formularza filtrów */