/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

h1, h2, h3 {
    color: #2c3e50;
}

a {
    text-decoration: none;
    color: #3498db;
}

button, .button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover, .button:hover {
    background-color: #2980b9;
}

/* Formularze */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Checklisty */
.checklist-item {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checklist-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checklist-meta button {
    margin-left: 5px;
    font-size: 12px;
    padding: 4px 8px;
}

/* Elementy checklisty */
#items-list {
    list-style: none;
    margin-top: 20px;
}

#items-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: white;
    margin-bottom: 5px;
    border-radius: 4px;
}

#items-list li input[type="checkbox"] {
    margin-right: 10px;
}

#items-list li span {
    flex-grow: 1;
}

#items-list li .delete-item {
    background-color: #e74c3c;
    margin-left: 10px;
}

#items-list li .delete-item:hover {
    background-color: #c0392b;
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 4px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Logowanie */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.error {
    color: #e74c3c;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fadbd8;
    border-radius: 4px;
}

/* Dodaj to do istniejącego pliku CSS */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.error {
    color: #e74c3c;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fadbd8;
    border-radius: 4px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    cursor: pointer;
    font-size: 16px;
}

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

/* Checklista */
.items-list {
    list-style: none;
    margin-top: 20px;
}

.items-list li {
    padding: 10px;
    background: white;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    position: relative;
}

li > span{
    padding-left: 10px;
    font-size: 18px;
}

.item-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.item-form input[type="checkbox"] {
    margin-right: 10px;
}

.item-form span {
    flex-grow: 1;
}

.delete-item {
    color: #ffffff;
    margin: auto;
    text-decoration: none;
    position: absolute;
    right: 10px;
}

.delete-item:hover {
    text-decoration: underline;
}
.item-checkbox {
    transition: all 0.3s ease;
    zoom: 200%;
}
.item-checkbox:checked {
    transform: scale(1.1);
}

#additemtothelist{
    width: 100%;
    height: 40px;
    outline: none;
    border: none;
    background-color: #27ae60;
    color: white;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    text-align: center;
    font-size: 16px;
}

::placeholder{
    color: rgb(199, 224, 195);
    padding: 10px;
    font-size: 16px;
    text-align: center;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

#toggle-dark-mode {
    background: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    color: black;
}

#toggle-dark-mode:hover {
    background: rgba(255, 255, 255, 0.1);
}