/* Typography */
html {
    font-family: 'Roboto', sans-serif;
}

@media (min-width: 576px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 20px;
    }
}

.icons-social i {
    font-size: 3em;
}

/* Custom Styles */
main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    padding: 0 30px;
    text-align: center;
}

main > .intro {
    font-family: 'Roboto', sans-serif;
    font-size: 3.75em;
    font-weight: 600;
}

main > .tagline {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    font-weight: 100;
}

.icons-social i {
    padding: 10px;
}

.icons-social a {
    text-decoration: none;
}

.devto {
    margin-bottom: -0.20rem;
}

.devto svg {
    margin-bottom: -0.20rem;
    margin-left: 0.675rem;;
    width: 2.65rem;
    height: 2.65rem;
}

footer {
    position: fixed;
    text-align: center;
    bottom: 10px;
    display: block;
    width: 100%;
    font-size: 14px;
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* Admin Panel Styles */
.admin-container, .auth-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-container h2, .admin-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.auth-form, .post-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input, .post-form input, .post-form textarea {
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.auth-form button, .post-form button {
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auth-form button:hover, .post-form button:hover {
    background-color: #45a049;
}

.posts-table, .users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.posts-table th, .posts-table td, .users-table th, .users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.posts-table th, .users-table th {
    background-color: #f4f4f4;
}

.btn {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-success {
    background-color: #4CAF50;
    color: white;
}

.btn-warning {
    background-color: #FF9800;
    color: white;
}

.btn-logout {
    background-color: #2196F3;
    color: white;
}

.error {
    color: red;
    font-weight: bold;
}

.success {
    color: green;
    font-weight: bold;
}

/* Responsive Design for Admin Panel */
@media (min-width: 768px) {
    .admin-container, .auth-container {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .auth-container, .admin-container {
        width: 100%;
        padding: 15px;
    }

    .auth-form, .post-form {
        gap: 10px;
    }
}

/* Login Page Styles */
.auth-container {
    max-width: 500px;
    padding: 30px;
}

.auth-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.auth-form {
    gap: 20px;
}

.auth-form input {
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.auth-form button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.auth-form button:hover {
    background-color: #0056b3;
}

.auth-container .error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.auth-container p {
    font-size: 14px;
    text-align: center;
}

.auth-container .register-link {
    color: #007bff;
}

.auth-container .register-link:hover {
    text-decoration: underline;
}
/* Wylogowywanie */
.auth-container {
    max-width: 500px;
    padding: 30px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
}

.auth-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.auth-container p {
    font-size: 16px;
    color: #333;
}

.auth-container .error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-container p {
    font-size: 14px;
    text-align: center;
}
/* Rejestracja */
.auth-container {
    max-width: 500px;
    padding: 30px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
}

.auth-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.auth-container p {
    font-size: 16px;
    color: #333;
}

.auth-container .error {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.auth-form button {
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auth-form button:hover {
    background-color: #45a049;
}

.auth-container p {
    font-size: 14px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 767px) {
    .auth-container {
        width: 100%;
        padding: 20px;
    }

    .auth-form {
        gap: 10px;
    }
}
/* Podstawowe ustawienia strony */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f7fa;
    color: #333;
    padding: 20px;
}

/* Kontener główny */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Nagłówki */
h2 {
    font-size: 24px;
    color: #4e5b6e;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Formularze logowania i rejestracji */
.auth-container, .admin-container {
    margin-bottom: 30px;
}

.auth-form, .post-form {
    display: flex;
    flex-direction: column;
}

.auth-form label, .post-form label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
}

.auth-form input, .post-form input, .post-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus, .post-form input:focus, .post-form textarea:focus {
    border-color: #4e5b6e;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #4e5b6e;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #3d4758;
}

button[type="submit"]:active {
    background-color: #2e3646;
}

/* Tabele */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f1f1f1;
    color: #4e5b6e;
    font-weight: 600;
}

td {
    color: #555;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Przycisk aktywacji/dezaktywacji */
.btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    display: inline-block;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    color: white;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-logout {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-logout:hover {
    background-color: #0056b3;
}

/* Błędy i sukcesy */
.error, .success {
    padding: 10px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 16px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.courses-table, .users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.courses-table th, .courses-table td,
.users-table th, .users-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.courses-table th {
    background-color: #f4f4f4;
}

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

.course-form label, .course-form input, .course-form textarea {
    display: block;
    margin: 10px 0;
    width: 100%;
}
/* Login Page Styles */
.auth-container {
    max-width: 500px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    text-align: center;
}

.auth-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4e5b6e;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form input {
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: #4e5b6e;
}

.auth-form button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.auth-form button:hover {
    background-color: #0056b3;
}

.auth-container .error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.auth-container p {
    font-size: 14px;
    text-align: center;
}

.auth-container .register-link {
    color: #007bff;
}

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

/* Responsiveness for Login Form */
@media (max-width: 767px) {
    .auth-container {
        padding: 20px;
        width: 100%;
    }

    .auth-form {
        gap: 10px;
    }
}
/* Twoje dotychczasowe style ... (skrócone dla czytelności) */

/* Dodane hover dla linków w stopce */
footer a:hover {
    color: #ff9800;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Stylizowanie formularzy logowania/rejestracji */
.auth-form input:focus, 
.post-form input:focus, 
.post-form textarea:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    border-color: #007bff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* Ulepszenie tabel (striped rows) */
.posts-table tr:nth-child(even), 
.users-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.posts-table tr:hover, 
.users-table tr:hover {
    background-color: #e9ecef;
}

/* Animacje dla przycisków */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
    width: 200%;
    height: 200%;
}

/* Responsywność dla tabel na urządzeniach mobilnych */
@media (max-width: 576px) {
    .posts-table, .users-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .posts-table th, 
    .posts-table td, 
    .users-table th, 
    .users-table td {
        font-size: 14px;
    }
}

/* Styl dla błędów/sukcesów */
.error::before, 
.success::before {
    content: '⚠'; /* Możesz zmienić na inną ikonę */
    margin-right: 8px;
    font-size: 18px;
}

.error {
    text-align: center;
}

.success {
    text-align: center;
}

/* Twoje dotychczasowe style ... (reszta kodu) */
