* { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.logo img {
    width: 50px;
    height: auto;
}

.logo-container {
    display: block;
}

a {
    color: #333;
    text-decoration: none;
}

.logout {
    color: #0056b3;
}

.logout:hover {
    color: #333;
    text-decoration: underline;
}

/*main {

    margin: 2rem 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}*/

.button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

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

.registration {
    font-size: 14px;
}

.registration a {
    color: #0056b3;
    text-decoration: underline;
}

.registration a:hover {
    text-decoration: none;
}

header a {
    color: #0056b3;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}






/* Контент */
main {
    /*max-width: 400px;*/
    margin: 2rem 2rem;
}

.content {
    max-width: 400px;
    margin: 2rem auto;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    padding: 2rem;
}

form input[type=text],
form input[type=email],
form input[type=password],
form input[type=file] {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
form label {
    display: block;
    margin-bottom: 0.5rem;
}
form button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}
form button:hover {
    background-color: #0056b3;
}
form .checkbox-container {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}
form .checkbox-container span {
    margin-left: 0.5rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.history-item p {
    margin: 0;
}
.history-item a {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}
.history-item a:hover {
    background-color: #0056b3;
}

main {
    flex-grow: 1;
}

/* Футер */
footer {
    background-color: #ffffff;
    padding: 1rem;
    text-align: center;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,.1);
}

footer a, footer a:visited {
    border: 2px solid black;
    padding: 5px;
}

footer a:hover {
    color: black;
    background-color: lightgray;
}

/* Адаптация под мобильные устройства */
@media screen and (max-width: 768px) {
    .history-item {
        flex-direction: column;
        gap: 10px;
    }
    .history-item > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
