* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 3px solid #667eea;
}

h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
    font-weight: 300;
}

.search-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dropdown-section {
    margin-bottom: 20px;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-container label {
    font-weight: bold;
    color: #4a5568;
    font-size: 14px;
}

#rightsSelect {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 45px;
}

#rightsSelect:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

#rightsSelect option {
    padding: 10px;
    background: white;
    color: #333;
}

.quick-access-section {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.quick-access-label {
    display: block;
    font-weight: bold;
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 10px;
}

.quick-access-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    padding: 8px 12px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #667eea;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.random-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-color: #ff6b6b;
    color: white;
}

.random-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ffb300);
    border-color: #ff5252;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

#searchInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
}

#searchInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.search-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.clear-btn {
    background: #e53e3e;
}

.clear-btn:hover {
    background: #c53030;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    background: #e2e8f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.right-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.right-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.right-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.right-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.right-card .category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.right-card .description {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.right-card .legal-basis {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    border-left: 3px solid #38b2ac;
    margin-top: 15px;
}

.right-card .legal-basis strong {
    color: #2d3748;
}

.detailed-info {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.info-section {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.info-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-section strong {
    color: #667eea;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.info-section p {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 50px;
    color: #666;
    font-size: 1.2rem;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #4a5568;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

footer {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    background: #f8f9fa;
    border-radius: 10px;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* Animacje ładowania */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    #searchInput {
        min-width: 100%;
    }

    .dropdown-container {
        margin-bottom: 15px;
    }
    
    #rightsSelect {
        width: 100%;
    }

    .quick-access-buttons {
        justify-content: flex-start;
    }
    
    .quick-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-filters {
        justify-content: flex-start;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .right-card {
        padding: 20px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}