body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    justify-content: space-between;
    padding-bottom: 60px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

main {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="email"], textarea, button {
    padding: 12px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
}

button {
    background-color: #333;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

/* Стили для списка работ */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #f9f9f9;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time {
    font-size: 14px;
    color: #888;
}

/* Всплывающее окно для пароля */
/* Стили для popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 300px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.admin-panel {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button {
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.admin-panel input, .admin-panel button {
    margin: 5px 0;
}

.admin-panel .detail-row {
    margin-bottom: 10px;
    padding: 12px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.mileage-info {
    font-size: 12px;
    color: #666;
    margin-top: -8px;
    margin-bottom: 10px;
    padding-left: 5px;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    display: none;
    width: 100px;
}

.delete-btn:hover {
    background-color: #c0392b;
}

input {
    padding: 12px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.delete-btn {
    display: none;
}

/* Добавьте это правило в ваш CSS для поддержания форматирования текста */
.work-description {
    font-size: 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.work-divider {
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
    width: 100%;
}

.work-time {
    font-size: 14px;
    color: gray;
    margin-right: 10px;
}

.language-select-container {
    position: absolute;
    top: 10px;
    left: 10px;
}

.delete-btn {
    background-color: #ff4f4f;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #ff1a1a;
}
.change-lang {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    font-size: 12px;
}

select {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* Адаптивность для мобильных устройств */
.banner {
    width: 600px;
    position: fixed;
    top: 205px;
    right: -320px;
    transition: right 0.3s ease-in-out, transform 0.3s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.banner img {
    max-width: 100%;
    border-radius: 8px;
    pointer-events: none;
}

.banner:hover {
    transform: scale(1.01);
}
@media (max-width: 800px) {
    .banner {
        width: 90%;
        bottom: 10px;
        right: 5%;
        left: 5%;
        top: auto;
        transition: transform 0.3s ease-in-out;
        display: none;
    }

    .banner img {
        display: none;
        content: url('/admobile.png');
        border-radius: 8px;
    }
    .banner button {
        display: none;
    }
}
@media (min-width: 481px) {
    .banner button {
        display: none;
    }
}
.small-btn {
    position: absolute;
    top: -18px;
    right: 0;
    margin: 0;
    padding: 0;
    width: 25px;
    height: 25px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.small-btn .icon {
    width: 14px;
    height: 14px;
    background-color: transparent;
}

.small-btn:hover {
    background-color: #e0e0e0;
}

.work-time {
    position: relative;
    white-space: nowrap;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 7px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}   
