* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;  /* центрируем содержимое по умолчанию */
    align-items: center;
}

/* Когда внутри #app лежит .main-layout (главное меню), отменяем центрирование */
#app:has(.main-layout) {
    display: block;  /* занимает всю ширину */
}

.container {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    width: 350px;
    text-align: center;
}

.hidden {
    display: none;
}

button {
    padding: 0.8rem;
    background-color: #ff8c00;
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e67e00;
}

a {
    color: #ff8c00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Тосты */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 14px;
    max-width: 300px;
    text-align: center;
    animation: slideUp 0.3s ease;
    border-left: 4px solid #ff8c00;
}

.toast.error {
    border-left-color: #ff4444;
}

.toast.success {
    border-left-color: #00C851;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}