html {
    font-size: 16px;
}

/* Для десктопов можно увеличить */
@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}

body {
    background: #f7f8fa;
    min-height: 100vh;
}

/* Основной контейнер */
.container {
    padding: 0;
    max-width: 100%;
}

/* Обертка для основного контента */
.main-content-wrapper {
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Приветственное сообщение */
.welcome-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.welcome-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-icon {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 1.5rem;
    animation: welcomeIconBounce 1s ease infinite;
}

@keyframes welcomeIconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-card h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-card p {
    margin-bottom: 0;
    font-size: 16px;
}

/* Копирайт */
div.copyright {
    margin-top: 50px;
    padding: 2rem 0;
    width: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

div.copyright a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

div.copyright a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Многоуровневые выпадающие меню */
@media all and (max-width: 960px) {
    .multilevel .dropdown-menu .dropdown-menu {
        margin-left: 5%;
        margin-top: 0px;
    }
}

@media all and (min-width:961px) {
    .multilevel .dropdown-menu .dropdown-menu {
        margin-left: 90%;
        margin-top: -30px;
    }
}

/* Оверлей загрузки с эффектом размытия */
.modal-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-loading-content-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.15s ease;
}

.modal-loading-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 0.85rem 1.4rem;
    animation: modalAppear 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-loading-spinner {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
}

.modal-loading-text {
    color: #2e2e2e;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Карточки контента */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 700;
}

.btn-confirm {
    background: transparent;
    border: 1px solid #00b000;
    color: #00b000;
    opacity: 1;
}

.btn-confirm:hover {
    background: #50d050;
    color: #000000;
}

.btn-confirm:disabled {
    background: transparent;
    border: 1px solid #e8a0a0;
    color: #e8a0a0;
    opacity: 1;
}

/* Адаптивность - УВЕЛИЧЕННЫЕ размеры для мобильных устройств */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .main-content-wrapper {
        padding: 1rem;
    }

    .welcome-card {
        padding: 2rem 1.5rem;
    }

    .welcome-icon {
        font-size: 48px;
    }

    .welcome-card h2 {
        font-size: 24px;
    }

    .welcome-card p {
        font-size: 16px;
    }

    .content-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-radius: 12px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    .btn {
        font-size: 16px;
        padding: 0.65rem 0.9rem;
        min-height: 44px;
    }

    .btn-confirm {
        font-size: 16px;
        padding: 0.75rem 1rem;
        min-height: 48px;
    }

    table {
        font-size: 16px;
    }

    table td, table th {
        padding: 0.75rem;
    }

    div.copyright {
        font-size: 14px;
        padding: 1.25rem 0;
        margin-top: 30px;
    }

    /* Увеличение размеров форм */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        min-height: 48px;
        padding: 0.75rem;
    }

    label {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    .main-content-wrapper {
        padding: 0.75rem;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }
}

