/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

/* Базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #ffffff, #eef9fe);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    color: #333;
    font-size: 0.95rem;
}

img {
    border: 0;
}

.clr {
    clear: both;
}

/* Контейнер */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
}

/* Шапка */
.header {
    width: 100%;
    padding: 10px 0;
    position: relative;
}

/* Скрытый checkbox */
.menu-checkbox {
    display: none;
}

/* Иконка гамбургер-меню */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #2c3e50;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

/* Контент (общий контейнер) */
.content {
    display: flex;
    align-items: flex-start;
    margin-top: 40px;
}

/* Контейнер для меню */
.menu-container {
    width: 250px;
    position: relative;
}

.cl-left {
    width: 250px;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px 0 0 10px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    min-height: 80vh;
}

/* Лаконичное и современное меню */
.menu {
    list-style: none;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-title {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.menu-title:hover {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: #ffffff;
}

.menglm.menu-title {
    background: #e74c3c;
    color: #ffffff;
}

.menglm.menu-title:hover {
    background: #c0392b;
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 15px;
    margin-top: 2px;
}

.menu-item.active .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 6px 10px;
    color: #34495e;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.submenu a:hover {
    color: #2980b9;
}

/* Контент справа */
.cl-right {
    flex: 1;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
}

/* Страница логина */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 50px 20px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #e0e7ff, #ffffff);
}

.login-form {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: #ffffff;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-slogan {
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.slogan {
    font-size: 1.1rem;
    color: #ecf0f1;
    font-style: italic;
    margin-top: 10px;
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 500;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ecf0f1;
    text-align: left;
    font-size: 0.95rem;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #ffffff;
    color: #333;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.login-form .reset-link {
    display: block;
    margin-bottom: 15px;
    text-align: right;
    font-size: 0.85rem;
    color: #ecf0f1;
    text-decoration: none;
}

.login-form .reset-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login-form button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.decor-circles {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.circle {
    width: 50px;
    height: 50px;
    background: #e67e22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
    transition: transform 0.3s ease;
}

.circle:hover {
    transform: scale(1.1);
}

/* Страница профиля */
.s-bk-lf {
    text-align: center;
    margin-bottom: 20px;
}

.acc-title {
    background: linear-gradient(to bottom, #2c3e50, #3498db);
    width: 100%;
    max-width: 300px;
    height: 40px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Lobster', cursive;
    font-size: 1.5em;
    color: #fff;
    line-height: 40px;
    margin: 0 auto;
}

.silver-bk {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.silver-bk:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.profile-greeting {
    font-size: 1.2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.profile-details {
    margin-bottom: 20px;
}

.detail-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px 15px;
    padding: 10px;
    background: #f9fbfd;
    border-radius: 8px;
}

.detail-item {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #34495e;
    font-size: 0.9rem;
}

.value {
    color: #555;
    font-size: 0.9rem;
    word-break: break-word;
}

.status-signed {
    color: #27ae60;
    font-weight: 500;
}

.status-not-signed {
    color: #e74c3c;
    font-weight: 500;
}

.status-jdg {
    color: #34495e;
}

.highlight-paj {
    color: #27ae60;
    font-weight: 500;
}

.car-info {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(to bottom, #f9fbfd, #ffffff);
    border-radius: 10px;
    border: 1px solid #e0e7ff;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.car-info-title {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.car-details {
    color: #555;
    line-height: 1.5;
}

.car-info-error {
    color: #e74c3c;
    font-weight: 500;
}

.car-info-error a {
    color: #2980b9;
    text-decoration: none;
}

.car-info-error a:hover {
    text-decoration: underline;
}

.footer-text {
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    color: #7f8c8d;
}

.footer-text a {
    color: #2980b9;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Стили для модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 500;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
}

.modal-link {
    color: #2980b9;
    text-decoration: underline;
    font-size: 0.95rem;
}

.modal-link:hover {
    color: #1f6b9e;
}

.modal-form {
    margin: 15px 0;
}

.modal-form label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
}

.modal-form input {
    margin-right: 10px;
}

.modal-button {
    margin-top: 15px;
}

.modal-button button {
    padding: 8px 15px;
    background: #2980b9;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-button button:hover {
    background: #1f6b9e;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wrap {
        padding: 0;
        width: 100%;
    }

    .login-container {
        padding: 50px 0 10px;
        height: auto;
        width: 100%;
    }

    .login-form {
        width: 90%;
        padding: 15px;
        margin: 0 auto;
    }

    .login-form h2 {
        font-size: 1.5rem;
    }

    .login-form input {
        padding: 10px;
        font-size: 1rem;
    }

    .login-form button {
        padding: 10px;
        font-size: 1.1rem;
    }

    .decor-circles {
        gap: 10px;
    }

    .circle {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .content {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        position: relative;
    }

    .menu-toggle {
        display: block !important;
        z-index: 1001;
    }

    .menu-container {
        position: fixed;
        top: 0;
        left: -100% !important;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #ffffff;
        transition: left 0.3s ease !important;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .menu-checkbox:checked ~ .menu-container {
        left: 0 !important;
    }

    .cl-left {
        width: 100%;
        min-height: auto;
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
        height: 100%;
    }

    .cl-right {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }

    .acc-title {
        max-width: 100%;
    }

    .silver-bk {
        max-width: 100%;
        padding: 15px;
    }

    .profile-greeting {
        font-size: 1.1rem;
    }

    .detail-group {
        grid-template-columns: 1fr;
        gap: 8px 10px;
    }

    .detail-item {
        padding: 6px 0;
    }

    .profile-table td {
        font-size: 0.9rem;
        padding: 6px;
    }

    .car-info {
        font-size: 0.9rem;
        padding: 12px;
    }

    .footer-text {
        font-size: 0.85rem;
    }
}