/* Import czcionki Instrument Sans z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

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

:root {
    --bg-primary: #212121;
    --bg-secondary: #2a2a2a;
    --bg-card: #2d2d2d;
    --bg-hover: #353535;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient-start: #FFBD69;
    --gradient-end: #FF6363;
    --accent: #FFBD69;
    --border-color: #3a3a3a;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Gradient dla nagłówków i ważnych tekstów */
.gradient-text, h1, h2, h3, .content-header h1, .section-header h2, .modal-header h2 {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Menu boczne */
#menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: #212121;
    color: var(--text-primary);
    padding: 0 0 30px 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    border-right: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

#menu.menu-open {
    transform: translateX(0);
}

#menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

#menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-toggle-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1200;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.menu-toggle-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.menu-toggle-icon svg {
    width: 22px;
    height: 22px;
}

#menu::-webkit-scrollbar {
    width: 6px;
}

#menu::-webkit-scrollbar-track {
    background: transparent;
}

#menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

#menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header menu */
.menu-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 189, 105, 0.05);
    backdrop-filter: blur(10px);

}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-logo-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 189, 105, 0.3);
}

.menu-logo-wrapper:hover {
    box-shadow: 0 6px 20px rgba(255, 189, 105, 0.5);
}

.menu-logo-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.menu-logo-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.menu-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-logo-title {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

#menu-sub-type {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Nawigacja menu */
.menu-nav {
    flex: 1;
    padding: 5px 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.main-menu-button {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 5px 11px;
    margin-top: 2px;
    margin-bottom: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 11px;
    font-weight: 300;
    position: relative;
    overflow: hidden;
    font-family: 'Instrument Sans', sans-serif;
    box-sizing: border-box;
}

.main-menu-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

.main-menu-button::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 189, 105, 0.1), rgba(255, 99, 99, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-menu-button:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.main-menu-button:hover::before {
    transform: scaleY(1);
}

.main-menu-button:hover::after {
    opacity: 1;
}

.main-menu-button.active {
    background: linear-gradient(90deg, rgba(255, 189, 105, 0.15), transparent);
    border-color: var(--accent);
    color: #ffffff;
    font-weight: 400;
    box-shadow: 0 2px 8px rgba(255, 189, 105, 0.2);
}

.main-menu-button.active::before {
    transform: scaleY(1);
}

.main-menu-button.active::after {
    opacity: 1;
}

.menu-icon {
    margin-right: 8px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 16px;
    height: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.menu-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.main-menu-button:hover .menu-icon {
    transform: scale(1.15) rotate(5deg);
}

.main-menu-button.active .menu-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(255, 189, 105, 0.5));
}

.menu-text {
    flex: 1;
    text-align: left;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 13px;
    font-weight: 200;
}

.notification-badge {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border-radius: 9px;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease infinite;
    box-shadow: none;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    margin-left: 5px;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
    }
}

/* Stopka menu */
.menu-footer {
    padding: 8px 10px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logout-btn {
    color: #ff6666;
    border: 1px solid rgba(255, 102, 102, 0.4);
    background: linear-gradient(135deg, rgba(255, 102, 102, 0.1), rgba(255, 68, 68, 0.05));
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.logout-btn::after {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(204, 0, 0, 0.2));
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    border-color: #ff4444;
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5), 0 0 15px rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

.logout-btn:hover .menu-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(255, 68, 68, 0.4);
}

.logout-btn .menu-icon {
    color: #ff6666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn:hover .menu-icon {
    color: #fff;
}


/* Responsywność */
@media (max-width: 1200px) {
    #menu {
        width: 180px;
    }
    
    #main-content {
        margin-left: 180px;
    }
}

@media (max-width: 900px) {
    #main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    #menu {
        transform: translateX(-100%);
        box-shadow: 8px 0 25px rgba(0, 0, 0, 0.45);
    }

    .menu-toggle-btn {
        display: inline-flex;
    }

    #main-content {
        margin-left: 0;
        padding: 18px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Główna zawartość */
#main-content {
    margin-left: 200px;
    padding: 24px;
    padding-bottom: 28px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    animation: slideInRight 0.5s ease;
}



.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Przyciski */
.btn-primary, .btn-secondary, .btn-danger, .btn-small {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-family: 'Instrument Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 189, 105, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 189, 105, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

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

/* Karty sekcji */
.section-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

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

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.link-more {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-more:hover {
    color: var(--gradient-end);
    transform: translateX(5px);
}

/* Statystyki */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.stat-icon {
    font-size: 40px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-content h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-change {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-change.positive {
    color: #4caf50;
}

/* Tabele */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table thead {
    background-color: var(--bg-secondary);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

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

.data-table tbody tr:hover {
    background-color: var(--bg-hover);
    transform: scale(1.01);
}

/* Odznaki */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid currentColor;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-pending {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
}

.badge-accepted, .badge-confirmed, .badge-completed {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
}

.badge-rejected, .badge-failed {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #fff;
}

.badge-running {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
}

.badge-paused, .badge-closed, .badge-disabled {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-ready, .badge-active {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
}

.badge-draft {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
}

/* Formularze */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group input[type="datetime-local"],
.form-group input[type="date"],
.form-group input[type="color"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Instrument Sans', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 189, 105, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.gallery-upload {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-upload:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.settings-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: grid;
    gap: 12px;
    align-items: center;
}

.settings-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.settings-item input[type="text"],
.settings-item input[type="number"],
.settings-item select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: 'Instrument Sans', sans-serif;
}

.settings-item input:focus,
.settings-item select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 189, 105, 0.1);
}

.settings-item textarea {
    min-height: 60px;
    resize: vertical;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Instrument Sans', sans-serif;
}

.settings-item textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 189, 105, 0.1);
}

.settings-item-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.settings-item-wrapper {
    display: flex;
    flex-direction: column;
}

.btn-add-item {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-family: 'Instrument Sans', sans-serif;
}

.btn-add-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    border-style: solid;
    transform: translateY(-2px);
}

.settings-item-delete {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.settings-item-delete:hover {
    background: #f44336;
    border-color: #f44336;
    color: #fff;
    transform: scale(1.1);
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    color: var(--text-primary);
}

/* Zakładki */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-family: 'Instrument Sans', sans-serif;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Filtry */
.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Instrument Sans', sans-serif;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 189, 105, 0.1);
}

/* Listy i karty */
.events-list, .activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item, .activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.event-item:hover, .activity-item:hover {
    background: var(--bg-hover);
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-month {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.event-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.event-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.event-status.confirmed {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
}

.event-status.pending {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
}

/* Stopka */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 20px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1500;
    font-size: 11px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 11px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 11px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Responsywność */
@media (max-width: 768px) {
    #menu {
        width: 100%;
        height: auto;
        position: relative;
        transform: translateX(-100%);
    }
    
    #menu.active {
        transform: translateX(0);
    }
    
    #main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    #footer {
        padding-left: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Dodatkowe animacje */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
        to right,
        var(--bg-hover) 0%,
        var(--bg-card) 50%,
        var(--bg-hover) 100%
    );
    background-size: 1000px 100%;
}

/* Toggle switch */
.screen-element-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.screen-element-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid var(--border-color);
}

.screen-element-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

.screen-element-toggle input:checked + .screen-element-toggle-slider {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
}

.screen-element-toggle input:checked + .screen-element-toggle-slider:before {
    transform: translateX(24px);
    background-color: #000;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    color: currentColor;
}

.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }

.icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Smooth transitions dla wszystkich interaktywnych elementów */
a, button, input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
