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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    overflow: hidden;
    color: #333;
    transition: background 0.3s ease;
}

body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
}

.hidden {
    display: none !important;
}

/* Panel logowania */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.login-header h1 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.login-header p {
    color: #666;
    margin-bottom: 2rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.login-info {
    display: none;
}

/* Główny interfejs */
#mainApp {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Nagłówek */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

.dark-theme .app-header {
    background: rgba(30, 30, 46, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.logo h1 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.dark-theme .logo h1 {
    color: #ffffff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-btn {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-btn:hover {
    background: #5a6fd8;
}

#userDisplay {
    color: #666;
    font-weight: 500;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #ff5252;
}

/* Panel sterowania */
.control-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    border-radius: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.dark-theme .control-panel {
    background: rgba(30, 30, 46, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.control-group {
    display: flex;
    gap: 1rem;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    transform: translateY(0);
}

.control-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.dark-theme .control-btn {
    background: #2a2a3e;
    border-color: #3a3a4e;
    color: #ffffff;
}

.dark-theme .control-btn:hover {
    border-color: #667eea;
    background: #3a3a4e;
}

.control-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transform: translateY(0);
}

.control-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-group {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    width: 300px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.dark-theme .search-input {
    background: #2a2a3e;
    border-color: #3a3a4e;
    color: #ffffff;
}

.dark-theme .search-input:focus {
    border-color: #667eea;
}

.search-btn {
    padding: 0.75rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dark-theme .search-btn {
    background: #667eea;
}

.dark-theme .search-btn:hover {
    background: #5a6fd8;
}

/* Kontener mapy */
.map-container {
    flex: 1;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
    overflow: hidden;
    z-index: 1;
}

#map, #streetView {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Panel dodawania graffiti */
.graffiti-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    transition: background 0.3s ease;
}

.dark-theme .graffiti-panel {
    background: #1a1a2e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.panel-content {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.dark-theme .panel-header {
    border-bottom-color: #3a3a4e;
}

.panel-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
    transition: color 0.3s ease;
}

.dark-theme .panel-header h3 {
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff6b6b;
}

.dark-theme .close-btn {
    color: #ffffff;
}

.dark-theme .close-btn:hover {
    color: #ff6b6b;
}

.graffiti-form .form-group {
    margin-bottom: 1.5rem;
}

.graffiti-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.dark-theme .graffiti-form label {
    color: #ffffff;
}

.graffiti-form input,
.graffiti-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
    background: white;
    color: #333;
}

.graffiti-form input:focus,
.graffiti-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.dark-theme .graffiti-form input,
.dark-theme .graffiti-form textarea {
    background: #2a2a3e;
    border-color: #3a3a4e;
    color: #ffffff;
}

.dark-theme .graffiti-form input:focus,
.dark-theme .graffiti-form textarea:focus {
    border-color: #667eea;
}

.image-preview {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #e1e5e9;
    color: #666;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #d1d5d9;
}

.btn-primary {
    flex: 1;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Panel profilu użytkownika */
.profile-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    transition: background 0.3s ease;
}

.dark-theme .profile-panel {
    background: #1a1a2e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-info {
    text-align: center;
    padding: 2rem 0;
}

.user-avatar {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.profile-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.dark-theme .profile-info h4 {
    color: #ffffff;
}

.profile-info p {
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.dark-theme .profile-info p {
    color: #a0a0a0;
}

.profile-actions {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-graffiti-list {
    padding: 0 2rem 2rem;
}

.my-graffiti-list h5 {
    color: #333;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.dark-theme .my-graffiti-list h5 {
    color: #ffffff;
}

/* Panel administratora */
.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.admin-panel.draggable {
    cursor: move;
}

.admin-panel.dragging {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.dark-theme .admin-panel {
    background: #1a1a2e;
    color: #ffffff;
}

.dark-theme .admin-panel {
    background: #1a1a2e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-stats {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: background 0.3s ease;
}

.dark-theme .stat-card {
    background: #2a2a3e;
}

.stat-card h4 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.dark-theme .stat-card h4 {
    color: #a0a0a0;
}

.stat-card p {
    color: #667eea;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.admin-actions {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-btn.danger {
    background: #ff6b6b;
    color: white;
    border: none;
}

.control-btn.danger:hover {
    background: #ff5252;
}

.all-graffiti-list {
    padding: 0 2rem 2rem;
}

.all-graffiti-list h5 {
    color: #333;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.dark-theme .all-graffiti-list h5 {
    color: #ffffff;
}

/* Przyciski usuwania */
.delete-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.delete-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Przycisk powrotu do mapy */
.login-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.back-to-map-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform: translateY(0);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.back-to-map-btn:active {
    transform: translateY(0);
}

.graffiti-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.admin-only {
    display: none !important;
}

.admin-only.show {
    display: flex !important;
}
.graffiti-list {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    max-height: 70vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 500;
    overflow: hidden;
    transition: background 0.3s ease;
}

.dark-theme .graffiti-list {
    background: #1a1a2e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.list-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark-theme .list-header {
    border-bottom-color: #3a3a4e;
}

.list-header h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
    transition: color 0.3s ease;
}

.dark-theme .list-header h3 {
    color: #ffffff;
}

.graffiti-items {
    max-height: 50vh;
    overflow-y: auto;
    padding: 1rem;
}

.graffiti-item {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

.graffiti-item:hover {
    transform: translateY(-2px);
}

.dark-theme .graffiti-item {
    background: #2a2a3e;
}

.graffiti-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.dark-theme .graffiti-item h4 {
    color: #ffffff;
}

.graffiti-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.dark-theme .graffiti-item p {
    color: #a0a0a0;
}

.graffiti-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 0.5rem;
}


/* Przełącznik motywu - stały w prawym dolnym rogu */
.theme-toggle-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2000;
}

.theme-toggle-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.dark-theme .theme-toggle-fixed {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .graffiti-panel {
        position: fixed;
        right: 10px;
        left: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        width: auto;
        max-height: 60vh;
    }
    
    .graffiti-list {
        position: fixed;
        right: 10px;
        left: 10px;
        top: 20px;
        transform: none;
        width: auto;
        max-height: 40vh;
    }
    
    #map, #streetView {
        height: 400px;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .control-panel {
        padding: 1rem;
    }
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Globalne style ochrony treści */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Blokada prawego przycisku myszy */
body, button, input, textarea, select, .control-btn, .login-btn, .search-btn, .back-to-map-btn, .close-btn, .profile-btn, .logout-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Wyłączenie kontekstowego menu */
body, .map-container, .control-panel, .app-header, .graffiti-panel, .profile-panel, .admin-panel {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Wyłączenie kopiowania dla konkretnych elementów */
h1, h2, h3, h4, h5, h6, p, span, div, button, input, textarea, label {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Wyłączenie prawego przycisku */
.no-context-menu {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Modal powiększenia zdjęcia */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.image-modal .modal-content {
    background: white;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: default;
}

.image-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

.image-modal .modal-header h3 {
    margin: 0;
    color: #333;
}

.image-modal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
}

.image-modal #modalImage {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.image-modal #modalImage:hover {
    transform: scale(1.02);
}

.image-modal .modal-info {
    text-align: center;
    width: 100%;
}

.image-modal .modal-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.image-modal .modal-info p {
    margin: 0.25rem 0;
    color: #666;
    line-height: 1.5;
}

.image-modal .modal-info p:last-child {
    font-size: 0.9rem;
    color: #999;
}

/* Dark theme dla modalu */
.dark-theme .image-modal .modal-content {
    background: #1a1a2e;
    color: #ffffff;
}

.dark-theme .image-modal .modal-header {
    border-bottom-color: #3a3a4e;
}

.dark-theme .image-modal .modal-header h3 {
    color: #ffffff;
}

.dark-theme .image-modal .modal-info h4 {
    color: #ffffff;
}

.dark-theme .image-modal .modal-info p {
    color: #b0b0b0;
}

.dark-theme .image-modal .modal-info p:last-child {
    color: #888;
}

/* Stopka */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-top: 1px solid #e1e5e9;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Przycisk przełącznika motywu w stopce */
.theme-toggle-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.theme-toggle-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.theme-toggle-footer span {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle-footer:hover span {
    transform: rotate(180deg);
}

/* Dark theme dla stopki */
.dark-theme .footer {
    background: rgba(26, 26, 46, 0.95);
    border-top-color: #3a3a4e;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .footer p {
    color: #b0b0b0;
}

.dark-theme .footer a {
    color: #8b9dc3;
}

.dark-theme .footer a:hover {
    color: #a8b8d8;
}

.dark-theme .theme-toggle-footer {
    background: linear-gradient(135deg, #8b9dc3 0%, #a8b8d8 100%);
    box-shadow: 0 2px 10px rgba(139, 157, 195, 0.3);
}

.dark-theme .theme-toggle-footer:hover {
    box-shadow: 0 4px 20px rgba(139, 157, 195, 0.4);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}
