/* Font Awesome z CDN */
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css);

:root {
    --primary: #7C3AED;
    --secondary: #5B21B6;
    --accent: #10B981;
    --dark: #0F172A;
    --darker: #0A0F1C;
    --light: #F8FAFC;
    --gray: #64748B;
    --card-bg: #1E293B;
    --text: #E2E8F0;
    --sidebar-width: 320px;
}

.premium-calendar-wrapper {
    background: var(--dark);
    color: var(--text);
    min-height: 800px;
    display: flex;
    width: 100%;
    max-width: 2000px;
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    font-size: 16px;
}

/* MOTYW JASNY */
.premium-calendar-wrapper.theme-light {
    --primary: #7C3AED;
    --secondary: #5B21B6;
    --accent: #10B981;
    --dark: #FFFFFF;
    --darker: #F8FAFC;
    --light: #0F172A;
    --gray: #64748B;
    --card-bg: #FFFFFF;
    --text: #1E293B;
    
    background: #FFFFFF;
    color: #1E293B;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.premium-calendar-wrapper.theme-light .left-sidebar,
.premium-calendar-wrapper.theme-light .right-sidebar {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.1);
}

.premium-calendar-wrapper.theme-light .month-view,
.premium-calendar-wrapper.theme-light .week-view,
.premium-calendar-wrapper.theme-light .list-view,
.premium-calendar-wrapper.theme-light .event-details-panel,
.premium-calendar-wrapper.theme-light .calendar-settings,
.premium-calendar-wrapper.theme-light .category-filters,
.premium-calendar-wrapper.theme-light .upcoming-events {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.premium-calendar-wrapper.theme-light .weekdays,
.premium-calendar-wrapper.theme-light .week-days-header {
    background: #F1F5F9;
    border-color: rgba(0, 0, 0, 0.1);
}

.premium-calendar-wrapper.theme-light .day-cell,
.premium-calendar-wrapper.theme-light .week-day-cell {
    border-color: rgba(0, 0, 0, 0.1);
}

.premium-calendar-wrapper.theme-light .day-cell:hover,
.premium-calendar-wrapper.theme-light .week-day-cell:hover {
    background: rgba(0, 0, 0, 0.02);
}

.premium-calendar-wrapper.theme-light .other-month {
    color: #94A3B8;
    background: rgba(0, 0, 0, 0.02);
}

.premium-calendar-wrapper.theme-light .section-title,
.premium-calendar-wrapper.theme-light .detail-label,
.premium-calendar-wrapper.theme-light .upcoming-date {
    color: #64748B !important;
}

/* MOTYW NIEBIESKI */
.premium-calendar-wrapper.theme-blue {
    --primary: #3B82F6;
    --secondary: #1D4ED8;
    --accent: #06B6D4;
    --dark: #0C4A6E;
    --darker: #082F49;
    --light: #E0F2FE;
    --gray: #7DD3FC;
    --card-bg: #0EA5E9;
    --text: #E0F2FE;
    
    background: linear-gradient(135deg, #0C4A6E 0%, #0369A1 100%);
    color: #E0F2FE;
}

.premium-calendar-wrapper.theme-blue .left-sidebar,
.premium-calendar-wrapper.theme-blue .right-sidebar {
    background: #082F49;
    border-color: rgba(14, 165, 233, 0.3);
}

.premium-calendar-wrapper.theme-blue .month-view,
.premium-calendar-wrapper.theme-blue .week-view,
.premium-calendar-wrapper.theme-blue .list-view,
.premium-calendar-wrapper.theme-blue .event-details-panel,
.premium-calendar-wrapper.theme-blue .calendar-settings,
.premium-calendar-wrapper.theme-blue .category-filters,
.premium-calendar-wrapper.theme-blue .upcoming-events {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    backdrop-filter: blur(10px);
}

.premium-calendar-wrapper.theme-blue .weekdays,
.premium-calendar-wrapper.theme-blue .week-days-header {
    background: rgba(2, 132, 199, 0.3);
    border-color: rgba(14, 165, 233, 0.3);
}

.premium-calendar-wrapper.theme-blue .day-cell,
.premium-calendar-wrapper.theme-blue .week-day-cell {
    border-color: rgba(14, 165, 233, 0.2);
}

.premium-calendar-wrapper.theme-blue .day-cell:hover,
.premium-calendar-wrapper.theme-blue .week-day-cell:hover {
    background: rgba(14, 165, 233, 0.1);
}

.premium-calendar-wrapper.theme-blue .other-month {
    color: #7DD3FC;
    background: rgba(14, 165, 233, 0.05);
}

.premium-calendar-wrapper.theme-blue .today {
    background: rgba(6, 182, 212, 0.2);
}

.premium-calendar-wrapper.theme-blue .today .day-number,
.premium-calendar-wrapper.theme-blue .today .week-day-number {
    color: #06B6D4;
}

.premium-calendar-wrapper.theme-blue .section-title,
.premium-calendar-wrapper.theme-blue .detail-label,
.premium-calendar-wrapper.theme-blue .upcoming-date {
    color: #7DD3FC !important;
}

/* Styl dla lewego sidebaru */
.left-sidebar {
    width: var(--sidebar-width);
    background: var(--darker);
    padding: 25px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-filters {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-item.active {
    background: rgba(124, 58, 237, 0.1);
}

.theme-light .category-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-light .category-item.active {
    background: rgba(124, 58, 237, 0.1);
}

.theme-blue .category-item:hover {
    background: rgba(14, 165, 233, 0.1);
}

.theme-blue .category-item.active {
    background: rgba(59, 130, 246, 0.2);
}

.category-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.category-name {
    flex: 1;
    font-size: 1rem;
}

.category-count {
    background: var(--darker);
    color: var(--gray);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.theme-light .category-count {
    background: #F1F5F9;
}

.theme-blue .category-count {
    background: rgba(2, 132, 199, 0.3);
}

.upcoming-events {
    flex: 1;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.upcoming-list {
    flex: 1;
    overflow-y: auto;
}

.upcoming-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.upcoming-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(3px);
}

.theme-light .upcoming-item {
    background: rgba(0, 0, 0, 0.03);
}

.theme-light .upcoming-item:hover {
    background: rgba(0, 0, 0, 0.07);
}

.theme-blue .upcoming-item {
    background: rgba(14, 165, 233, 0.05);
}

.theme-blue .upcoming-item:hover {
    background: rgba(14, 165, 233, 0.1);
}

.upcoming-date {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 6px;
}

.upcoming-title {
    font-weight: 500;
    font-size: 1rem;
}

/* Styl dla głównej zawartości */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    min-width: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.calendar-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    background: var(--card-bg);
    border: none;
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--primary);
}

.current-month {
    font-size: 1.5rem;
    font-weight: 600;
    min-width: 220px;
    text-align: center;
}

.view-options {
    display: flex;
    gap: 6px;
    background: var(--card-bg);
    padding: 6px;
    border-radius: 10px;
}

.view-btn {
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
}

.view-btn.active {
    background: var(--primary);
}

.calendar-views {
    display: none;
}

.calendar-views.active {
    display: block;
}

/* Styl dla widoku miesięcznego */
.month-view {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.weekday {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--gray);
    font-size: 1.1rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-cell {
    min-height: 140px;
    padding: 10px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.day-cell:hover {
    background: rgba(255, 255, 255, 0.02);
}

.day-cell:nth-child(7n) {
    border-right: none;
}

.day-number {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

/* STYLE DLA WYDARZEŃ - KOLORY BĘDĄ DYNAMICZNIE NADAWANE */
.event-item {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    
    /* Domyślne style tekstu */
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    
    /* Cień dla lepszej czytelności */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    
    /* Zawijanie tekstu */
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Efekt hover z animacją */
.event-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* Dodatkowy kontener dla lepszego wyświetlania czasu */
.event-item::before {
    content: attr(data-time);
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 2px;
    font-weight: 400;
}

/* Wskaźnik dla całodniowych wydarzeń */
.event-item.all-day::before {
    content: "🕒 Cały dzień";
}

.other-month {
    color: var(--gray);
    background: rgba(255, 255, 255, 0.02);
}

.today {
    background: rgba(124, 58, 237, 0.1);
}

.today .day-number {
    color: var(--primary);
}

.theme-blue .today {
    background: rgba(6, 182, 212, 0.2);
}

.theme-blue .today .day-number {
    color: #06B6D4;
}

.more-events {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    margin-top: 4px;
    backdrop-filter: blur(10px);
}

.more-events:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.theme-light .more-events {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.theme-light .more-events:hover {
    background: rgba(0, 0, 0, 0.15);
}

.theme-blue .more-events {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.3);
}

.theme-blue .more-events:hover {
    background: rgba(14, 165, 233, 0.3);
}

/* Styl dla widoku tygodniowego */
.week-view {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-week {
    font-size: 1.4rem;
    font-weight: 600;
    min-width: 300px;
    text-align: center;
}

.week-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.week-day-header {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--gray);
    font-size: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.week-day-header:last-child {
    border-right: none;
}

.week-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 600px;
}

.week-day-cell {
    min-height: 150px;
    padding: 10px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.week-day-cell:hover {
    background: rgba(255, 255, 255, 0.02);
}

.week-day-cell:nth-child(7n) {
    border-right: none;
}

.week-day-cell.today {
    background: rgba(124, 58, 237, 0.1);
}

.week-day-cell.today .week-day-number {
    color: var(--primary);
    font-weight: 700;
}

.week-day-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.week-day-number {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
}

.week-day-month {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 500;
}

.week-day-name {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.week-day-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
    max-height: 120px;
}

/* Style dla wydarzeń w widoku tygodniowym */
.week-event-item {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    
    /* Domyślne style tekstu */
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    
    /* Cień dla lepszej czytelności */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    
    /* Zawijanie tekstu */
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
}

/* Efekt hover z animacją */
.week-event-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.week-event-time {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 2px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

.week-event-time::before {
    content: "🕒";
    font-size: 0.7rem;
}

.week-event-title {
    font-weight: 500;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.week-event-location {
    font-size: 0.7rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.week-event-location::before {
    content: "📍";
    font-size: 0.65rem;
}

/* Style dla motywów w widoku tygodniowym */
.theme-light .week-day-cell:hover {
    background: rgba(0, 0, 0, 0.02);
}

.theme-light .week-day-cell.today {
    background: rgba(124, 58, 237, 0.1);
}

.theme-blue .week-day-cell:hover {
    background: rgba(14, 165, 233, 0.1);
}

.theme-blue .week-day-cell.today {
    background: rgba(6, 182, 212, 0.2);
}

/* Styl dla prawego sidebaru */
.right-sidebar {
    width: var(--sidebar-width);
    background: var(--darker);
    padding: 25px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    flex-shrink: 0;
}

.event-details-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.event-details-title {
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.selected-event {
    text-align: center;
    padding: 25px;
    color: var(--gray);
    font-size: 1rem;
}

/* NOWE STYLE DLA SZCZEGÓŁÓW WYDARZENIA */
.event-detail {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 6px;
}

.detail-label i {
    width: 16px;
    text-align: center;
    color: var(--primary);
}

.detail-value {
    font-weight: 500;
    font-size: 1rem;
    word-wrap: break-word;
    word-break: break-word;
    padding-left: 24px; /* Wyrównanie z ikonkami */
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.event-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: var(--secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--text);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-light .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-blue .btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
}

/* USUNIĘTE: .stats-panel - cały blok został usunięty */

/* Style dla przełącznika motywów */
.theme-cycle-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.theme-cycle-btn:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

/* Style dla selectów w ustawieniach */
.view-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.9rem;
    min-width: 150px;
}

.theme-light .view-select {
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-blue .view-select {
    border-color: rgba(14, 165, 233, 0.3);
}

.calendar-settings {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
}

.settings-title {
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.setting-item {
    margin-bottom: 18px;
}

.setting-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Widok listy */
.list-view {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.list-header {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    background: var(--darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
    font-weight: 600;
    color: var(--gray);
    font-size: 1rem;
}

.list-items {
    max-height: 600px;
    overflow-y: auto;
}

.list-item {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    font-size: 1rem;
    word-wrap: break-word;
    word-break: break-word;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

.theme-light .list-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.theme-blue .list-item:hover {
    background: rgba(14, 165, 233, 0.05);
}

/* Animacja pojawiania się wydarzeń */
@keyframes eventAppear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-item, .week-event-item {
    animation: eventAppear 0.3s ease-out;
}

/* Responsywność */
@media (max-width: 2000px) {
    .premium-calendar-wrapper {
        max-width: 95%;
        margin: 20px auto;
    }
}

@media (max-width: 1600px) {
    .premium-calendar-wrapper {
        max-width: 98%;
    }
    
    .day-cell {
        min-height: 130px;
    }
    
    .week-days-grid {
        min-height: 500px;
    }
    
    .week-day-cell {
        min-height: 130px;
    }
}

@media (max-width: 1200px) {
    .premium-calendar-wrapper {
        flex-wrap: wrap;
        height: auto;
    }
    
    .right-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        order: 3;
    }
    
    .left-sidebar,
    .main-content {
        width: 50%;
    }
    
    .day-cell {
        min-height: 120px;
    }
    
    .event-item {
        padding: 6px 8px;
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    
    .week-days-grid {
        min-height: 400px;
    }
    
    .week-day-cell {
        min-height: 120px;
    }
    
    .week-event-item {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 900px) {
    .premium-calendar-wrapper {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .left-sidebar,
    .main-content,
    .right-sidebar {
        width: 100%;
    }
    
    .left-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .right-sidebar {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .day-cell {
        min-height: 110px;
    }
    
    .week-days-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .week-day-cell {
        min-height: 120px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .week-day-cell:last-child {
        border-bottom: none;
    }
    
    .week-days-header {
        display: none;
    }
    
    .week-day-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .week-day-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .day-cell {
        min-height: 100px;
        padding: 8px 6px;
    }
    
    .event-item {
        padding: 5px 6px;
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .event-item::before {
        font-size: 0.7rem;
    }
    
    .left-sidebar,
    .right-sidebar {
        padding: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .list-header,
    .list-item {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .list-header div:nth-child(3),
    .list-header div:nth-child(4),
    .list-item div:nth-child(3),
    .list-item div:nth-child(4) {
        display: none;
    }
    
    .view-select {
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .theme-cycle-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .week-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .current-week {
        font-size: 1.2rem;
        min-width: auto;
    }
    
    .week-day-cell {
        min-height: 110px;
        padding: 8px 6px;
    }
    
    .week-event-item {
        padding: 5px 6px;
        font-size: 0.75rem;
    }
    
    .week-day-events {
        max-height: 100px;
    }
    
    /* Responsywność dla nowych szczegółów wydarzenia */
    .detail-label {
        font-size: 0.85rem;
    }
    
    .detail-value {
        font-size: 0.95rem;
        padding-left: 20px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .calendar-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .calendar-nav {
        order: 1;
    }
    
    .view-options {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .day-cell {
        min-height: 90px;
    }
    
    .event-item {
        font-size: 0.75rem;
        padding: 4px 5px;
        -webkit-line-clamp: 2;
    }
    
    .day-number {
        justify-content: center;
        font-size: 1rem;
    }
    
    .calendar-title {
        font-size: 1.8rem;
    }
    
    .current-month {
        font-size: 1.3rem;
    }
    
    .week-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .current-week {
        font-size: 1.1rem;
    }
    
    .week-day-cell {
        min-height: 100px;
    }
    
    .week-event-item {
        padding: 4px 5px;
        font-size: 0.7rem;
    }
    
    .week-event-title {
        -webkit-line-clamp: 1;
    }
    
    .week-event-location {
        display: none;
    }
}

/* Ikony Font Awesome - teraz z CDN */
.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    font-style: normal;
    display: inline-block;
}

.fas, .fa-solid {
    font-weight: 900;
}

.far, .fa-regular {
    font-weight: 400;
}

.fab, .fa-brands {
    font-weight: 400;
}

/* Poprawki dla lepszej czytelności */
.premium-calendar-wrapper * {
    box-sizing: border-box;
}

.event-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.theme-light .event-category {
    background: rgba(124, 58, 237, 0.15);
}

.theme-blue .event-category {
    background: rgba(59, 130, 246, 0.2);
}

/* Lepsze kontrasty dla tekstu */
.section-title,
.detail-label,
.upcoming-date {
    color: #94a3b8 !important;
}

.theme-light .section-title,
.theme-light .detail-label,
.theme-light .upcoming-date {
    color: #64748b !important;
}

.theme-blue .section-title,
.theme-blue .detail-label,
.theme-blue .upcoming-date {
    color: #7dd3fc !important;
}

/* Poprawki dla hover effects */
.category-item:hover,
.upcoming-item:hover,
.event-item:hover,
.week-event-item:hover,
.list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dodatkowe style dla lepszego zawijania tekstu */
.event-title,
.upcoming-title,
.detail-value,
.week-event-title {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 5px;
    font-style: italic;
}

/* Style dla modala ze szczegółami wydarzenia */
#event-details-modal .event-modal-content {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Toolbar buttons */
.toolbar-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.toolbar-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.close-btn:hover {
    background: #EF4444;
}

/* Sekcje informacji */
.info-section {
    margin-bottom: 30px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.info-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: var(--text);
    word-wrap: break-word;
}

/* NOWE STYLE DLA ZMIENIONEGO UKŁADU MODALA */
.modal-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.modal-fullwidth-section {
    width: 100%;
    margin-bottom: 30px;
}

/* DODANE: Style dla kolumn w modal */
.event-description .editor-columns {
    display: flex !important;
    gap: 20px !important;
    margin: 15px 0 !important;
}

.event-description .editor-column {
    flex: 1 !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
}

/* Dla motywu jasnego */
.theme-light .event-description .editor-column {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Dla motywu niebieskiego */
.theme-blue .event-description .editor-column {
    background: rgba(14, 165, 233, 0.05) !important;
}

/* Responsywność kolumn */
@media (max-width: 768px) {
    .event-description .editor-columns {
        flex-direction: column !important;
    }
}

/* DODANE: Ukryj elementy edycyjne w modal */
#event-details-modal .image-toolbar,
#event-details-modal .resize-handle,
#event-details-modal .editor-toolbar {
    display: none !important;
}

/* DODANE: Popraw wygląd obrazków w modal */
#event-details-modal .image-container {
    display: inline-block !important;
    max-width: 100% !important;
    position: relative !important;
}

#event-details-modal .image-container img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* Responsywność modala */
@media (max-width: 768px) {
    #event-details-modal .event-modal-content {
        width: 98% !important;
        max-width: none !important;
        max-height: 95vh !important;
        border-radius: 12px !important;
    }
    
    .modal-top-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .modal-body {
        padding: 20px !important;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
}

/* Poprawki dla lepszej czytelności w modalach */
.modal-body h3 {
    color: var(--primary) !important;
    margin-bottom: 15px !important;
}

.modal-body .info-label {
    color: var(--gray) !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

.modal-body .info-value {
    color: var(--text) !important;
    margin-bottom: 10px !important;
}

/* Style dla lightbox obrazków */
.lightbox-close {
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Style dla motywów w modal */
#event-details-modal.theme-light .event-modal-content {
    background: #FFFFFF;
    color: #1E293B;
}

#event-details-modal.theme-light .info-item {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: var(--primary);
}

#event-details-modal.theme-light .toolbar-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #1E293B;
}

#event-details-modal.theme-light .toolbar-btn:hover {
    background: var(--primary);
    color: white;
}

#event-details-modal.theme-blue .event-modal-content {
    background: rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(10px);
}

#event-details-modal.theme-blue .info-item {
    background: rgba(14, 165, 233, 0.05);
    border-left-color: var(--primary);
}

#event-details-modal.theme-blue .toolbar-btn {
    background: rgba(14, 165, 233, 0.2);
    color: #E0F2FE;
}

#event-details-modal.theme-blue .toolbar-btn:hover {
    background: var(--primary);
}

/* Style dla motywów modala - POPRAWIONE */
#event-details-modal.theme-dark {
    background: rgba(0, 0, 0, 0.9) !important;
}

#event-details-modal.theme-dark .event-modal-content {
    background: var(--card-bg) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#event-details-modal.theme-dark .modal-toolbar {
    background: var(--darker) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#event-details-modal.theme-dark .toolbar-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text) !important;
}

#event-details-modal.theme-dark .toolbar-btn:hover {
    background: var(--primary) !important;
}

#event-details-modal.theme-dark .info-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-left: 4px solid var(--primary) !important;
}

#event-details-modal.theme-dark .participant-tag {
    background: var(--primary) !important;
    color: white !important;
}

/* Motyw jasny dla modala */
#event-details-modal.theme-light {
    background: rgba(255, 255, 255, 0.95) !important;
}

#event-details-modal.theme-light .event-modal-content {
    background: #FFFFFF !important;
    color: #1E293B !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#event-details-modal.theme-light .modal-toolbar {
    background: #F8FAFC !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#event-details-modal.theme-light .toolbar-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #1E293B !important;
}

#event-details-modal.theme-light .toolbar-btn:hover {
    background: var(--primary) !important;
    color: white !important;
}

#event-details-modal.theme-light .info-item {
    background: rgba(0, 0, 0, 0.03) !important;
    border-left: 4px solid var(--primary) !important;
}

#event-details-modal.theme-light .participant-tag {
    background: var(--primary) !important;
    color: white !important;
}

#event-details-modal.theme-light .event-description {
    background: rgba(0, 0, 0, 0.02) !important;
}

#event-details-modal.theme-light .link-item {
    background: rgba(0, 0, 0, 0.03) !important;
}

/* DODANE: Ustawienie ciemnego koloru tekstu dla wszystkich elementów w modal-body w jasnym motywie */
#event-details-modal.theme-light .modal-body,
#event-details-modal.theme-light .modal-body .info-label,
#event-details-modal.theme-light .modal-body .info-value,
#event-details-modal.theme-light .modal-body .event-description,
#event-details-modal.theme-light .modal-body .link-item,
#event-details-modal.theme-light .modal-body .link-item a,
#event-details-modal.theme-light .modal-body .participant-tag {
    color: #1E293B !important;
}

/* DODANE: Dla linków w jasnym motywie ustawiamy niebieski kolor, aby były widoczne */
#event-details-modal.theme-light .modal-body .link-item a {
    color: #1D4ED8 !important;
}

/* DODANE: Specyficzne style dla tekstu w modal-body */
#event-details-modal.theme-light .modal-body .info-value {
    color: #1E293B !important;
}

#event-details-modal.theme-light .modal-body .info-label {
    color: #64748B !important;
}

#event-details-modal.theme-light .modal-body h3 {
    color: var(--primary) !important;
}

#event-details-modal.theme-light .modal-body .event-description {
    color: #374151 !important;
}

/* Motyw niebieski dla modala */
#event-details-modal.theme-blue {
    background: rgba(12, 74, 110, 0.95) !important;
}

#event-details-modal.theme-blue .event-modal-content {
    background: rgba(14, 165, 233, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    color: #E0F2FE !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
}

#event-details-modal.theme-blue .modal-toolbar {
    background: rgba(2, 132, 199, 0.3) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.3) !important;
}

#event-details-modal.theme-blue .toolbar-btn {
    background: rgba(14, 165, 233, 0.2) !important;
    color: #E0F2FE !important;
}

#event-details-modal.theme-blue .toolbar-btn:hover {
    background: var(--primary) !important;
}

#event-details-modal.theme-blue .info-item {
    background: rgba(14, 165, 233, 0.1) !important;
    border-left: 4px solid var(--primary) !important;
}

#event-details-modal.theme-blue .participant-tag {
    background: var(--primary) !important;
    color: white !important;
}

#event-details-modal.theme-blue .event-description {
    background: rgba(14, 165, 233, 0.05) !important;
}

#event-details-modal.theme-blue .link-item {
    background: rgba(14, 165, 233, 0.08) !important;
}

/* Upewnij się, że modal ma odpowiedni styl podstawowy */
#event-details-modal {
    transition: background-color 0.3s ease !important;
}

#event-details-modal .event-modal-content {
    transition: all 0.3s ease !important;
}

/* Responsywność modala */
@media (max-width: 768px) {
    #event-details-modal .event-modal-content {
        width: 98% !important;
        max-width: none !important;
        max-height: 95vh !important;
        border-radius: 12px !important;
    }
    
    .modal-top-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .modal-body {
        padding: 20px !important;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
}

/* Poprawki dla lepszej czytelności w modalach */
.modal-body h3 {
    color: var(--primary) !important;
    margin-bottom: 15px !important;
}

.modal-body .info-label {
    color: var(--gray) !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

.modal-body .info-value {
    color: var(--text) !important;
    margin-bottom: 10px !important;
}

/* Style dla lightbox obrazków */
.lightbox-close {
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9) !important;
}.formflow-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.formflow-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.formflow-form h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    text-align: center;
    font-size: 1.5rem;
}

.formflow-field-group {
    margin-bottom: 20px;
}

.formflow-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.formflow-field-group input,
.formflow-field-group textarea,
.formflow-field-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s;
}

.formflow-field-group input:focus,
.formflow-field-group textarea:focus,
.formflow-field-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.formflow-submit-container {
    margin-top: 25px;
}

.formflow-submit-btn {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.formflow-submit-btn:hover {
    background: #2980b9;
}

.formflow-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.formflow-required {
    color: #e74c3c;
}

.formflow-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
}

.formflow-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.formflow-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.formflow-checkbox-options,
.formflow-radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.formflow-checkbox-option,
.formflow-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.formflow-checkbox-option input,
.formflow-radio-option input {
    width: auto;
}

.formflow-checkbox-option label,
.formflow-radio-option label {
    margin: 0;
    font-weight: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .formflow-form {
        padding: 20px;
        margin: 0 10px;
    }
    
    .formflow-form h3 {
        font-size: 1.3rem;
    }
}