* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    padding: 2.5rem;
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid #4caf50;
    padding-bottom: 1.5rem;
}

.header h1 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.header p {
    color: #388e3c;
    font-size: 1.2rem;
    font-weight: 500;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 2px solid #c8e6c9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fdf9;
}

.input:focus {
    outline: none;
    border-color: #4caf50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 12px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

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

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
}

.btn-small {
    padding: 10px 16px;
    font-size: 0.95rem;
}

a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #388e3c;
    text-decoration: underline;
}

/* Style dla aplikacji */
.admin-view, .user-view {
    animation: fadeIn 0.5s ease-in;
}

.admin-header, .user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #e8f5e9;
    background: linear-gradient(135deg, #f1f8e9, #e8f5e9);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.admin-header h2, .user-header h2 {
    color: #2e7d32;
    margin: 0;
    font-size: 1.8rem;
}

.admin-header p, .user-header p {
    color: #388e3c;
    margin: 5px 0 0 0;
    font-size: 1.1rem;
}

.user-sections {
    display: grid;
    gap: 2rem;
}

.user-section {
    background: linear-gradient(135deg, #f9fdf9, #f1f8e9);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #4caf50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.user-section:hover {
    transform: translateY(-3px);
}

.user-section h3 {
    color: #2e7d32;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #c8e6c9;
    padding-bottom: 0.5rem;
}

/* Style dla kart listów */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.list-card {
    background: white;
    border: 2px solid #e8f5e9;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #4caf50;
}

.list-card.available {
    border-left: 5px solid #28a745;
}

.list-card.reserved {
    border-left: 5px solid #dc3545;
}

.list-card h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.list-card p {
    margin: 8px 0;
    color: #555;
    line-height: 1.5;
}

.list-card strong {
    color: #388e3c;
}

.list-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dostępny {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-zarezerwowany {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* Style dla ukrytych zdjęć */
.photo-container {
    margin: 15px 0;
    padding: 15px;
    background: #f9fdf9;
    border-radius: 10px;
    border: 2px dashed #c8e6c9;
}

.hidden-photo {
    display: none !important;
}

.visible-photo {
    display: block;
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    margin: 15px 0;
    border: 3px solid #4caf50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.show-photo-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 5px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.show-photo-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.hide-photo-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 5px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.hide-photo-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
}

.photo-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    margin: 10px 0;
    font-size: 1.1rem;
}

.photo-info {
    font-size: 0.95rem;
    color: #4caf50;
    margin: 8px 0;
    font-weight: 500;
}

.view-full-btn {
    margin-left: 10px !important;
}

/* Style dla admina */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #4caf50, #45a049);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    color: white;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.admin-actions {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f1f8e9, #e8f5e9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.admin-actions h3 {
    color: #2e7d32;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.action-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Style dla formularzy administracyjnych - POSZERZONE */
.add-list-form {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f9fdf9, #f1f8e9);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #4caf50;
}

.form-header h3 {
    color: #2e7d32;
    font-size: 1.6rem;
    margin: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2e7d32;
    font-size: 1.1rem;
}

.input, .textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #c8e6c9;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: white;
}

.input:focus, .textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.file-input {
    padding: 12px;
    background: white;
}

.form-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-end;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e8f5e9;
}

.form-info {
    background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 5px solid #2196f3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-info h4 {
    margin-top: 0;
    color: #1976d2;
    font-size: 1.2rem;
}

.form-info pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.form-info ul {
    margin: 1rem 0;
    padding-left: 1.8rem;
}

.form-info li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    padding: 10px;
    background: #f9fdf9;
    border-radius: 8px;
    border: 2px solid #c8e6c9;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: #f1f8e9;
    border-color: #4caf50;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 20px;
    height: 20px;
    accent-color: #4caf50;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #4caf50;
    font-size: 1.2rem;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #f1b0b7;
    margin: 1rem 0;
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #b1dfbb;
    margin: 1rem 0;
}

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

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

/* Responsywność */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        margin: 20px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 1.5rem;
    }
    
    .admin-header, .user-header {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
        text-align: center;
    }
    
    .form-header {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .user-sections {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .lists-grid {
        grid-template-columns: 1fr;
    }
    
    .add-list-form {
        padding: 1.5rem;
    }
    
    .photo-actions {
        flex-direction: column;
    }
    
    .list-actions {
        flex-direction: column;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .lists-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
    
    .add-list-form {
        max-width: 1000px;
    }
}