/* Wyszukiwarka Gmin Styles */
.wg-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.wg-header {
    text-align: center;
    margin-bottom: 24px;
}

.wg-title {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
}

.wg-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    margin: 0;
}

.wg-search-box-wrapper {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.wg-search-input-container {
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                linear-gradient(to right, #0091AF, #4BAAAE, #90C8B8, #F2C061, #EE993B, #E74134) border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.wg-search-icon {
    margin-left: 18px;
    color: #999;
    min-width: 20px;
}

.wg-search-input-container input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px 16px 16px 12px;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    color: #333;
}

.wg-search-input-container input::placeholder {
    color: #aaa;
}

.wg-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #fff;
}

.wg-table {
    width: 100%;
    margin: 0 !important;
    border-collapse: collapse;
    background-color: #fff;
    table-layout: fixed;
    overflow: hidden;
}

.wg-table th,
.wg-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
}

.wg-table th:last-child,
.wg-table td:last-child {
    border-right: none;
}

.wg-table th {
    background-color: #363E48;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
    border-right: 1px solid #4b5563;
    white-space: nowrap;
}

.wg-table th:last-child {
    border-right: none;
}

.wg-table tr:last-child td {
    border-bottom: none !important;
}

.wg-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.wg-table tbody tr:hover {
    background-color: #f1f5f9;
}

.wg-anim-row {
    display: none;
    opacity: 0;
}

.wg-anim-row.show-row {
    display: table-row;
    animation: wgRowFadeIn 0.4s ease forwards;
}

@keyframes wgRowFadeIn {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.wg-table td {
    font-size: 14px;
    color: #334155;
    word-break: break-word;
}

.wg-table td a {
    color: #0284c7;
    text-decoration: none;
}

.wg-table td a:hover {
    text-decoration: underline;
}

.wg-td-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: text-bottom;
    color: #64748b;
}

/* --- MOBILE RESPONSIVE (CARD LAYOUT) --- */
@media screen and (max-width: 768px) {
    .wg-header {
        margin-bottom: 20px;
    }
    .wg-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .wg-subtitle {
        font-size: 14px;
    }

    .wg-table-container {
        border: none;
        background-color: transparent;
        margin-bottom: 20px;
    }

    .wg-table, .wg-table thead, .wg-table tbody, .wg-table th, .wg-table td, .wg-table tr {
        display: block;
    }
    
    .wg-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .wg-table tr {
        border: 1px solid #e2e8f0;
        margin-bottom: 15px;
        border-radius: 8px;
        background-color: #fff !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    
    .wg-anim-row.show-row {
        display: block !important;
    }
    
    .wg-table td {
        border: none !important;
        box-shadow: inset 0 -1px 0 #e2e8f0;
        position: relative;
        padding: 12px 15px 12px 42%;
        text-align: left;
        min-height: 44px;
        word-break: break-word;
        display: flex;
        align-items: center;
    }
    
    .wg-table tr td:last-child {
        box-shadow: none;
    }
    
    .wg-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 35%;
        padding: 12px 15px;
        white-space: nowrap;
        font-weight: 600;
        color: #fff;
        background-color: #363E48;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        border-right: 1px solid #2d343c;
        border-bottom: 1px solid #4b5563;
    }
    
    .wg-table tr td:last-child::before {
        border-bottom: none;
    }
    
    .wg-td-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
}

/* --- ODDZIAŁY LIST MODE --- */
.wg-list-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.wg-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wg-results-list li {
    border-bottom: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateY(10px);
    transition: background-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}

.wg-results-list li:last-child {
    border-bottom: none;
}

.wg-results-list li.show-item {
    opacity: 1;
    transform: translateY(0);
}

.wg-results-list a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #334155;
    font-size: 15px;
    transition: background-color 0.2s;
}

.wg-results-list a:hover {
    background-color: #f8fafc;
    color: #0284c7;
}

.wg-list-text {
    display: block;
}

.wg-list-text strong {
    font-weight: 600;
    color: #0f172a;
}
