/* Загальні стилі для всіх сторінок */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(120deg, #f8f9fa, #e9ecef);
    color: #333;
}

/* Головний контейнер */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

/* Логотип */
.logo-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo {
    max-width: 120px;
    max-height: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Стилі для тексту */
.text h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.text a {
    padding: 12px 24px;
    background: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.3s;
}

.text a:hover {
    background: #0056b3;
}

/* Сторінка Welcome Page */
.text.welcome h1 {
    color: #333;
}

/* Сторінка 404 Page */
.text.error h1 {
    color: #ff4757;
}

/* Стилі для відеоплеєра */
.video-container {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.video-container .play-icon {
    width: 50px;
    height: 50px;
    background: #007BFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.video-container .play-icon:hover {
    background: #0056b3;
}

.video-container video {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

.switch-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 18px;
    color: #333;
}

/* Тумблер */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

button {
    padding: 12px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: #007bff;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.toast.hidden {
    display: none;
}