/* css/components.css */

/* --- Кнопки --- */
.menu-toggle { 
    font-size: 2rem; 
    cursor: pointer; 
    background: none; 
    border: none; 
    color: white; 
    padding: 10px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.auth-buttons-group { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-top: 20px; 
    text-align: center;
}

.auth-btn { 
    padding: 15px 20px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: bold; 
    transition: background-color 0.2s, transform 0.1s;
}
.auth-btn:active {
    transform: translateY(1px);
}

.btn-primary { background-color: var(--secondary-color); color: white; }
.btn-secondary { background-color: #78909C; color: white; }
.btn-danger { background-color: #D32F2F; color: white; }

#header-actions { display: flex; gap: 10px; }
.header-action-btn { background: var(--dark-green); color: white; border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; font-size: 14px; }
#install-pwa-btn { background: var(--dark-green); color: white; border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; font-size: 14px; margin-top: 10px; }
.btn-small { padding: 8px 15px; font-size: 14px; }


/* --- Уведомления и статусы --- */
.status-message { margin-top: 20px; padding: 15px; border-radius: 5px; font-weight: bold; text-align: center; }
.status-success { background-color: #E8F5E9; color: #2E7D32; }
.status-error { background-color: #FFEBEE; color: #C62828; }
.status-loading { background-color: #E3F2FD; color: #1565C0; }
.badge { display: inline-block; background: var(--primary-color); color: white; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: bold; }


/* --- Виджеты --- */
.widgets-container { display: grid; height: 100%; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, 1fr); gap: 10px; }
.mini-widget { width: 100%; height: 100%; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; color: white; cursor: pointer; transition: transform 0.2s; box-sizing: border-box; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; padding: 5px; text-align: center; }


/* --- Формы и поля ввода --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--text-color); text-align: left;}
.form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; box-sizing: border-box; }
.form-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2); }
.form-group small { display: block; margin-top: 5px; color: #666; font-size: 14px; text-align: left;}
.profile-form label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--text-color); }
.profile-form input, .profile-form textarea { width: 95%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 15px; font-size: 1rem; font-family: inherit; }
.input-error { border-color: #D32F2F !important; background-color: #FFEBEE; }
.input-error:focus { box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2) !important; }
.error-message { color: #D32F2F; font-size: 12px; margin-top: 5px; margin-bottom: 10px; display: block; animation: slideDown 0.2s ease-out; }


/* --- QR-код --- */
#qr-code-container { margin-top: 20px; padding: 20px; border-radius: 8px; }
#qr-code-container img { margin: auto; }
#qr-reader { width: 100%; max-width: 500px; margin: 20px auto; border: 1px solid #ccc; }


/* --- Оверлей и баннеры --- */
#logo-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--background-color); z-index: 1001; display: none; flex-direction: column; justify-content: center; align-items: center; }
#logo-overlay.active { display: flex; }
#logo-overlay img { max-width: 80%; max-height: 50vh; width: auto; height: auto; }
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--menu-bg); color: #f1f1f1; padding: 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); z-index: 1002; display: none; }
#cookie-banner.active { display: block; }
.cookie-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.cookie-text { flex: 1; min-width: 300px; font-size: 14px; }
.cookie-text a { color: #8abfd9; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: bold; }
.btn-accept { background: var(--secondary-color); color: white; }
.btn-settings, .btn-reject { background: #78909C; color: white; }
#cookie-settings { display: none; width: 100%; margin-top: 15px; padding: 15px; background: #4a4d4a; border-radius: 5px; }
.cookie-setting { margin: 10px 0; display: flex; align-items: center; }
.cookie-setting input { margin-right: 10px; }

