/* Import fontu Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Globalne zastosowanie Poppins */
.regulaminy-container *,
.wydarzenie-regulaminy-container *,
.wydarzenie-regulaminy-list *,
.wydarzenie-regulamin-item *,
.wydarzenie-regulamin-info *,
.wydarzenie-regulamin-meta *,
.wydarzenie-regulamin-action *,
.wydarzenie-regulaminy-empty {
    font-family: 'Poppins', sans-serif !important;
}

/* Style dla listy regulaminów */
.wydarzenie-regulaminy-container,
.regulaminy-container {
    font-family: 'Poppins', sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Reset formularza */
.regulaminy-container select,
.regulaminy-container input,
.regulaminy-container button {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Style dla filtrów - nowy układ */
.regulaminy-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Pole wyszukiwania na pełną szerokość */
.regulaminy-search {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.regulaminy-search input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 30px 0 0 30px;
    border-right: none;
    font-size: 14px;
    height: 45px;
    font-family: 'Poppins', sans-serif;
}

.regulaminy-search button {
    width: 45px;
    height: 45px;
    background-color: #1F9347 !important; /* Zielony kolor */
    border: none;
    color: white;
    border-radius: 50% !important; /* Pełne koło */
    margin-left: -20px !important; /* Przesunięcie, aby stworzyć efekt nakładania */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.regulaminy-search button svg {
    stroke: white;
    width: 20px;
    height: 20px;
}

/* Dropdown */
.regulaminy-dropdown {
    flex: 1;
    min-width: 120px;
    max-width: none;
}

.regulaminy-dropdown select {
    width: 100%;
    padding: 10px 30px 10px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 30px;
    background-color: white;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    height: 45px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Drugi wiersz z filtrami */
.regulaminy-filters .regulaminy-dropdown {
    flex-grow: 1;
    flex-basis: 0;
}

/* Style dla stanu ładowania */
#regulaminy-list.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Lista regulaminów */
.wydarzenie-regulaminy-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Poppins', sans-serif;
}

.wydarzenie-regulamin-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wydarzenie-regulamin-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Styl dla separatora wydarzeń przeszłych */
.wydarzenie-regulamin-separator {
    position: relative;
    text-align: center;
    margin: 30px 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.wydarzenie-regulamin-separator:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    z-index: 1;
}

.wydarzenie-regulamin-separator span {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #f6f6f6;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.wydarzenie-regulamin-info {
    flex: 1;
}

.wydarzenie-regulamin-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.wydarzenie-regulamin-title a {
    color: #333333;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.wydarzenie-regulamin-title a:hover {
    color: #1F9347;
}

.wydarzenie-regulamin-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #666666;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.wydarzenie-regulamin-data,
.wydarzenie-regulamin-lokalizacja {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
}

.wydarzenie-regulamin-data svg,
.wydarzenie-regulamin-lokalizacja svg {
    stroke: #1F9347;
}

.wydarzenie-regulamin-action {
    flex-shrink: 0;
}

.wydarzenie-regulamin-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1F9347;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.wydarzenie-regulamin-button:hover {
    background-color: #17723a;
    color: white;
}

.wydarzenie-regulamin-past {
    opacity: 0.75;
}

.wydarzenie-regulamin-past .wydarzenie-regulamin-data svg,
.wydarzenie-regulamin-past .wydarzenie-regulamin-lokalizacja svg {
    stroke: #666666;
}

.wydarzenie-regulaminy-empty {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    color: #666666;
    font-family: 'Poppins', sans-serif;
}

/* Responsywność */
@media (max-width: 991px) {
    .regulaminy-dropdown {
        flex: 1 1 calc(50% - 15px); /* Dwa filtry w linii na tabletach */
    }
}

/* Małe ekrany mobilne */
@media (max-width: 768px) {
    /* Wszystkie filtry w jednej kolumnie */
    .regulaminy-dropdown {
        flex: 1 1 100%; /* Jeden filtr w linii na telefonach */
        width: 100%;
    }
    
    /* Przeniesienie przycisku pod informacje o wydarzeniu */
    .wydarzenie-regulamin-item {
        flex-direction: column;
    }
    
    .wydarzenie-regulamin-info {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .wydarzenie-regulamin-action {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .wydarzenie-regulamin-button {
        width: 100%;
        justify-content: center;
    }
}

/* Dodatkowe style dla przycisków Bootstrap */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    padding: 8px 16px;
    line-height: 1.5;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.btn-success {
    color: #fff;
    background-color: #1F9347;
    border-color: #1F9347;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    background-color: #17723a;
    border-color: #17723a;
    color: #fff;
}

.btn-success svg {
    stroke: #fff;
}