/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #4a6fa5;
    color: white;
    padding: 1rem 0;
    text-align: center;
    border-radius: 5px 5px 0 0;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5rem;
}

main {
    background-color: white;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.welcome-message {
    font-size: 1.2rem;
    text-align: center;
    margin: 20px 0;
    padding: 30px;
    background-color: #e9f5ff;
    border-left: 4px solid #4a6fa5;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.welcome-message h2 {
    color: #2c5282;
    margin-bottom: 15px;
}

.welcome-message p {
    margin-bottom: 15px;
}

/* Nawigacja */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #cbd5e0;
}

/* Formularze */
.auth-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c5282;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #4a6fa5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: #4a6fa5;
    width: 100%;
    padding: 12px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #3a5a80;
}

.auth-link {
    margin-top: 20px;
    text-align: center;
    color: #4a5568;
}

.auth-link a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Komunikaty o błędach */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #c62828;
    border-radius: 0 4px 4px 0;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #2e7d32;
    border-radius: 0 4px 4px 0;
}

/* Strona błędu */
.error-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.error-container h2 {
    color: #2c5282;
    margin-bottom: 20px;
}

/* Strony obrazków */
.upload-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upload-form .form-group {
    margin-bottom: 20px;
}

.upload-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.upload-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
}

.image-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-container h1 {
    text-align: center;
    color: #2c5282;
    margin-bottom: 20px;
}

.image-wrapper {
    margin: 20px 0;
    text-align: center;
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-meta {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 4px;
    border-left: 4px solid #4a6fa5;
}

.image-meta p {
    margin: 5px 0;
    color: #4a5568;
}

.image-actions {
    margin: 20px 0;
    text-align: center;
}

/* Galeria obrazków na stronie głównej */n.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-card .card-body {
    padding: 15px;
}

.image-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #2c5282;
}

.image-card .card-text {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 10px;
}

.image-card .small {
    font-size: 0.8rem;
    color: #718096;
}

/* Responsywność */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
}

.error-actions {
    margin-top: 30px;
}

/* Profil użytkownika */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background-color: #4a6fa5;
    color: white;
    padding: 30px;
    text-align: center;
}

.profile-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.profile-details {
    padding: 30px;
}

.detail-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    width: 200px;
}

.detail-value {
    flex: 1;
    color: #2d3748;
}

/* Stopka */
footer {
    text-align: center;
    margin-top: auto;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    background-color: white;
    border-top: 1px solid #e2e8f0;
}
