/* Multi ICS Calendar - Frontend Styles v1.5.2 - POPRAWIONA WERSJA */
/* Nowoczesny, czytelny design z zielonym akcentem #0F8435 → #12A44A */

.mic-modern-container {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 132, 53, 0.08);
}

/* Statystyki */
.mic-stats-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mic-stat-item {
    text-align: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(15, 132, 53, 0.06), rgba(18, 164, 74, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(15, 132, 53, 0.12);
    min-width: 110px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mic-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 132, 53, 0.15);
    background: linear-gradient(135deg, rgba(15, 132, 53, 0.08), rgba(18, 164, 74, 0.12));
}

.mic-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F8435;
    line-height: 1;
}

.mic-stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
    font-weight: 500;
}

/* Wyszukiwanie */
.mic-search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto 25px;
}

.mic-search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.mic-search-box input:focus {
    border-color: #0F8435;
    box-shadow: 0 0 0 4px rgba(15, 132, 53, 0.08);
}

.mic-search-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Kontrolki czasowe */
.mic-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mic-control-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #0F8435, #12A44A);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(15, 132, 53, 0.2);
}

.mic-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 132, 53, 0.3);
}

.mic-control-btn.active {
    background: linear-gradient(135deg, #059669, #0F8435);
    box-shadow: 0 4px 12px rgba(15, 132, 53, 0.4);
}

/* Filtry lokalizacji */
.mic-location-filters {
    margin-bottom: 35px;
}

.mic-location-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(15, 132, 53, 0.02);
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid rgba(15, 132, 53, 0.08);
}

.mic-filter-label {
    font-weight: 600;
    color: #0F8435;
    margin-right: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.mic-location-btn {
    padding: 8px 16px;
    border: 1px solid #0F8435;
    border-radius: 50px;
    background: rgba(15, 132, 53, 0.04);
    color: #0F8435;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 500;
}

.mic-location-btn:hover,
.mic-location-btn.active {
    background: #0F8435;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 132, 53, 0.2);
}

/* Grid wydarzeń - 2 kolumny (domyślny) */
.mic-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

/* Grid wydarzeń - 1 kolumna */
.mic-events-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* Grupy dat */
.mic-date-group {
    grid-column: 1 / -1;
    margin: 35px 0 20px;
}

.mic-date-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 3px solid #0F8435;
    padding-bottom: 12px;
    position: relative;
    margin: 0;
}

.mic-date-header::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0F8435, #12A44A);
    border-radius: 2px;
}

.mic-date-header i {
    margin-right: 12px;
    color: #0F8435;
}

/* Karty wydarzeń - nowoczesny design */
.mic-event-card {
    background: #F6FBF7;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.mic-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #0F8435, #12A44A);
    border-radius: 0 2px 2px 0;
}

.mic-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Wydarzenia wielodniowe - specjalne oznaczenie */
.mic-multi-day-event {
    border-left: 6px solid #12A44A;
    background: linear-gradient(135deg, #F0FDF4, #F6FBF7);
}

.mic-multi-day-event::before {
    background: linear-gradient(135deg, #10b981, #059669);
    width: 6px;
}

/* Tytuł wydarzenia - wyraźny */
.mic-event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

/* POPRAWIONE: Układy dla lokalizacji i czasu */
.mic-event-location-time {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(15, 132, 53, 0.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.mic-location-info,
.mic-time-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.mic-location-info {
    justify-content: center;
}

.mic-time-info {
    justify-content: center;
    flex-wrap: wrap;
}

.mic-location-info .mic-city-name {
    font-weight: 700;
    color: #0F8435;
    font-size: 1.25rem;
}

.mic-time-info .mic-time-display {
    color: #dc2626;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
}

/* Specjalne style dla wydarzeń wielodniowych */
.mic-multi-day-time .mic-time-info .mic-time-display {
    font-size: 1.25rem;
    color: #dc2626;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
}

.mic-multi-day-time .mic-time-info {
    justify-content: center;
    text-align: center;
}

.mic-multi-day-time .mic-time-info i {
    color: #0F8435;
}

/* Ikony */
.mic-location-info i,
.mic-time-info i {
    color: #0F8435;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Lokalizacja wydarzenia - tylko jeśli nie ma lokalizacji z czasem */
.mic-event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0F8435;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* POPRAWKA: Opis wydarzenia - jednolite style dla obu układów */
.mic-event-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 18px;
    max-height: 4.5em; /* POPRAWKA: Jednolita wysokość dla obu układów */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
    font-size: 0.9rem;
}

/* USUNIĘTA nieprawidłowa reguła */
/* .mic-events-grid-single .mic-event-description { max-height: 6em; } */

.mic-event-description.expanded {
    max-height: none;
}

.mic-event-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(transparent, #F6FBF7);
    pointer-events: none;
    transition: opacity 0.3s ease; /* POPRAWKA: Dodana animacja */
}

.mic-event-description.expanded::after {
    opacity: 0; /* POPRAWKA: Płynne ukrywanie */
    display: none;
}

/* POPRAWKA: Lepszy przycisk toggle */
.mic-description-toggle {
    background: none;
    border: none;
    color: #0F8435;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 6px 0; /* POPRAWKA: Zwiększone padding */
    text-decoration: underline;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block; /* POPRAWKA: Wymuszone block display */
    width: auto;
    text-align: left;
}

.mic-description-toggle:hover {
    color: #059669;
    transform: translateX(2px); /* POPRAWKA: Subtelny efekt hover */
}

.mic-event-description a {
    color: #0F8435;
    text-decoration: none;
    font-weight: 500;
}

.mic-event-description a:hover {
    text-decoration: underline;
}

/* Footer wydarzenia */
.mic-event-footer {
    margin-top: 16px;
}

.mic-event-link {
    background: linear-gradient(135deg, #0F8435, #12A44A);
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(15, 132, 53, 0.2);
}

.mic-event-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 132, 53, 0.3);
    color: white !important;
    text-decoration: none;
}

/* Strona organizatora */
.mic-event-site {
    margin-top: 12px;
}

.mic-site-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(15, 132, 53, 0.04), rgba(18, 164, 74, 0.06));
    border: 1px solid rgba(15, 132, 53, 0.15);
    border-radius: 12px;
    text-decoration: none;
    color: #0F8435;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
}

.mic-site-link:hover {
    background: linear-gradient(135deg, rgba(15, 132, 53, 0.08), rgba(18, 164, 74, 0.10));
    transform: translateX(4px);
    text-decoration: none;
    color: #059669;
    box-shadow: 0 3px 12px rgba(15, 132, 53, 0.15);
}

.mic-site-link strong {
    font-weight: 600;
    font-size: 0.9rem;
}

.mic-site-url {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 6px;
}

.mic-site-link .fas {
    color: #0F8435;
    transition: transform 0.3s ease;
}

.mic-site-link:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* Brak wydarzeń */
.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    font-size: 1.1rem;
}

.no-events i {
    font-size: 4rem;
    margin-bottom: 24px;
    color: #d1d5db;
    display: block;
}

/* Paginacja - nowoczesny design */
.mic-pagination-info {
    text-align: center;
    margin: 20px 0;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.mic-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.mic-pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0F8435, #12A44A);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 132, 53, 0.2);
    min-width: 120px;
    justify-content: center;
}

.mic-pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 132, 53, 0.3);
    background: linear-gradient(135deg, #059669, #0F8435);
}

.mic-pagination-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mic-pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.mic-pagination-page {
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-pagination-page:hover {
    border-color: #0F8435;
    background: rgba(15, 132, 53, 0.05);
    color: #0F8435;
    transform: translateY(-1px);
}

.mic-pagination-page.active {
    background: linear-gradient(135deg, #0F8435, #12A44A);
    border-color: #0F8435;
    color: white;
    box-shadow: 0 4px 12px rgba(15, 132, 53, 0.2);
    transform: translateY(-1px);
}

.mic-pagination-dots {
    color: #9ca3af;
    font-weight: 600;
    padding: 0 8px;
    font-size: 1.1rem;
}

/* Event wrapper dla paginacji */
.mic-event-wrapper {
    display: block;
}

.mic-event-wrapper.mic-hidden {
    display: none;
}

/* Komunikat o braku wyników */
.mic-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1rem;
    background: rgba(15, 132, 53, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(15, 132, 53, 0.2);
}

.mic-no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #9ca3af;
    display: block;
}

.mic-no-results p {
    margin: 0;
    font-weight: 500;
}

/* Debug info styles */
.mic-debug-info {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    padding: 24px;
    border-radius: 12px;
    margin: 20px 0;
}

.mic-debug-info h3 {
    color: #92400e;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.mic-debug-info ul {
    margin: 12px 0 12px 20px;
}

.mic-debug-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.mic-debug-info a {
    color: #0F8435;
    text-decoration: none;
    font-weight: 500;
}

.mic-debug-info a:hover {
    text-decoration: underline;
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mic-event-card:nth-child(even) {
    animation-delay: 0.1s;
}

.mic-event-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Responsywność */
@media (max-width: 768px) {
    .mic-modern-container {
        padding: 20px;
        border-radius: 12px;
        margin: 10px;
    }

    /* Na urządzeniach mobilnych zawsze używaj 1 kolumny */
    .mic-events-grid,
    .mic-events-grid-single {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mic-stats-bar {
        gap: 12px;
    }

    .mic-stat-item {
        padding: 12px 18px;
        min-width: 100px;
    }

    .mic-stat-number {
        font-size: 1.5rem;
    }

    .mic-stat-label {
        font-size: 0.8rem;
    }

    .mic-controls {
        gap: 6px;
    }
    
    .mic-control-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .mic-location-group {
        gap: 8px;
        padding: 14px 18px;
    }
    
    .mic-location-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .mic-filter-label {
        font-size: 13px;
        margin-right: 6px;
    }

    .mic-date-header {
        font-size: 1.3rem;
    }

    .mic-event-title {
        font-size: 1.1rem;
    }

    .mic-event-card {
        padding: 20px;
    }

    .mic-search-box input {
        padding: 12px 40px 12px 16px;
        font-size: 14px;
    }

    .mic-event-location-time {
        padding: 12px;
        gap: 10px;
    }
    
    .mic-location-info .mic-city-name {
        font-size: 1.1rem;
    }
    
    .mic-time-info .mic-time-display {
        font-size: 1.1rem;
    }
    
    .mic-multi-day-time .mic-time-info .mic-time-display {
        font-size: 1.1rem;
    }

    .mic-site-link {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .mic-pagination {
        gap: 6px;
        margin: 30px 0 15px;
    }
    
    .mic-pagination-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .mic-pagination-pages {
        margin: 0 8px;
        gap: 3px;
    }
    
    .mic-pagination-page {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .mic-pagination-info {
        font-size: 0.8rem;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .mic-modern-container {
        padding: 16px;
        margin: 8px;
    }

    .mic-stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .mic-stat-item {
        width: 100%;
        max-width: 200px;
    }

    .mic-location-group {
        flex-direction: column;
        text-align: center;
    }

    .mic-filter-label {
        margin-bottom: 10px;
    }

    .mic-event-location-time {
        font-size: 0.9rem;
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mic-location-info .mic-city-name,
    .mic-time-info .mic-time-display {
        font-size: 1rem;
    }

    .mic-multi-day-time .mic-time-info .mic-time-display {
        font-size: 1rem;
    }

    .mic-event-title {
        font-size: 1.05rem;
    }

    .mic-pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .mic-pagination-pages {
        margin: 0;
        order: -1;
    }
    
    .mic-pagination-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Specjalne style dla układu 1 kolumny */
.mic-events-grid-single .mic-event-card {
    width: 100%;
    margin: 0;
}

/* Większe odstępy w układzie 1 kolumny */
.mic-events-grid-single {
    gap: 50px;
}

/* Dodatkowe marginesy dla grup dat w układzie 1 kolumny */
.mic-events-grid-single .mic-date-group {
    margin: 50px 0 30px;
}

/* Pierwsza grupa dat w układzie 1 kolumny */
.mic-events-grid-single .mic-date-group:first-child {
    margin-top: 35px;
}

/* Obsługa ukrywania wydarzeń przez filtry */
.mic-event-wrapper[style*="display: none"],
.mic-date-group[style*="display: none"] {
    display: none !important;
}

/* Widok kompaktowy */
.mic-compact-container {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 132, 53, 0.06);
    border: 1px solid rgba(15, 132, 53, 0.08);
}

/* Nagłówek kompaktowy */
.mic-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(15, 132, 53, 0.1);
}

.mic-compact-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mic-compact-header h3::before {
    content: '📅';
    font-size: 1.2rem;
}

.mic-compact-count {
    background: linear-gradient(135deg, #0F8435, #12A44A);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(15, 132, 53, 0.2);
}

/* Lista kompaktowa */
.mic-compact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Element kompaktowy */
.mic-compact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(15, 132, 53, 0.02), rgba(18, 164, 74, 0.04));
    border: 1px solid rgba(15, 132, 53, 0.12);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mic-compact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #0F8435, #12A44A);
    border-radius: 0 2px 2px 0;
}

.mic-compact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 132, 53, 0.12);
    background: linear-gradient(135deg, rgba(15, 132, 53, 0.05), rgba(18, 164, 74, 0.07));
}

/* Główna zawartość */
.mic-compact-main {
    flex: 1;
    min-width: 0;
}

.mic-compact-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
}

.mic-compact-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mic-compact-title a:hover {
    color: #0F8435;
    text-decoration: underline;
}

/* Meta informacje */
.mic-compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mic-compact-date,
.mic-compact-time,
.mic-compact-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.mic-compact-date {
    color: #0F8435;
    font-weight: 600;
}

.mic-compact-time {
    color: #dc2626;
    font-weight: 600;
}

.mic-compact-location {
    color: #0F8435;
}

.mic-compact-meta i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Akcje */
.mic-compact-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.mic-compact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0F8435, #12A44A);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(15, 132, 53, 0.2);
}

.mic-compact-link:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(15, 132, 53, 0.3);
    color: white;
    text-decoration: none;
}

.mic-compact-link i {
    font-size: 0.9rem;
}

/* Brak wydarzeń w widoku kompaktowym */
.mic-compact-no-events {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
    background: rgba(15, 132, 53, 0.02);
    border-radius: 8px;
    border: 1px dashed rgba(15, 132, 53, 0.2);
    margin: 0;
}

/* POPRAWKA: "Dodaj do kalendarza" - dropdown nad przyciskiem */
.mic-add-to-calendar {
    position: relative;
    display: inline-block;
    margin-top: 12px;
    width: 100%;
    z-index: 1;
}

.mic-calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #059669, #0F8435);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(15, 132, 53, 0.2);
}

.mic-calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 132, 53, 0.3);
    background: linear-gradient(135deg, #047857, #059669);
    color: white !important;
}

.mic-calendar-btn:active {
    transform: translateY(0);
}

.mic-dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.mic-calendar-btn.active .mic-dropdown-arrow {
    transform: rotate(180deg);
}

/* POPRAWKA: Dropdown menu wyświetlany NAD przyciskiem */
.mic-calendar-dropdown {
    position: absolute;
    bottom: 100%; /* Zmienione z top: 100% */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(15, 132, 53, 0.2);
    border-radius: 8px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15); /* Zmieniony kierunek cienia */
    z-index: 9999;
    margin-bottom: 4px; /* Zmienione z margin-top */
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px); /* Animacja od dołu */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: 200px;
}

.mic-calendar-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mic-calendar-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #374151 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.mic-calendar-dropdown a:last-child {
    border-bottom: none;
}

.mic-calendar-dropdown a:hover {
    background: linear-gradient(90deg, rgba(15, 132, 53, 0.05), rgba(18, 164, 74, 0.08));
    color: #0F8435 !important;
    transform: translateX(4px);
    text-decoration: none !important;
}

.mic-calendar-dropdown a i {
    width: 20px;
    text-align: center;
    color: #0F8435;
    font-size: 1rem;
}

.mic-calendar-dropdown a:hover i {
    color: #059669;
}

/* Specifyczne kolory dla różnych serwisów */
.mic-calendar-dropdown a:nth-child(1) i {
    color: #4285f4;
}

.mic-calendar-dropdown a:nth-child(2) i {
    color: #0078d4;
}

.mic-calendar-dropdown a:nth-child(3) i {
    color: #7b68ee;
}

.mic-calendar-dropdown a:nth-child(4) i {
    color: #059669;
}

/* Animacja dla dropdown */
@keyframes dropdownFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mic-calendar-dropdown.show {
    animation: dropdownFadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsywność dla widoku kompaktowego */
@media (max-width: 768px) {
    .mic-compact-container {
        margin: 10px;
        padding: 18px;
        border-radius: 10px;
    }
    
    .mic-compact-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }
    
    .mic-compact-header h3 {
        font-size: 1.2rem;
    }
    
    .mic-compact-item {
        padding: 14px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .mic-compact-main {
        width: 100%;
    }
    
    .mic-compact-meta {
        justify-content: flex-start;
        gap: 10px;
    }
    
    .mic-compact-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .mic-compact-title {
        font-size: 1rem;
    }
    
    .mic-compact-meta span {
        font-size: 0.8rem;
    }

    .mic-calendar-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .mic-calendar-dropdown a {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .mic-compact-container {
        padding: 16px;
        margin: 8px;
    }
    
    .mic-compact-item {
        padding: 12px 14px;
    }
    
    .mic-compact-title {
        font-size: 0.95rem;
    }
    
    .mic-compact-meta {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mic-compact-meta span {
        font-size: 0.75rem;
    }
    
    .mic-compact-link {
        width: 32px;
        height: 32px;
    }
    
    .mic-compact-link i {
        font-size: 0.8rem;
    }

    .mic-calendar-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .mic-calendar-dropdown a {
        padding: 10px 14px;
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .mic-calendar-dropdown a i {
        width: 18px;
        font-size: 0.9rem;
    }
}