* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.landing-page, .dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    padding: 40px 0;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.info-block h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.info-block ul {
    list-style: none;
    margin-top: 20px;
}

.info-block li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.auth-block {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.auth-form {
    margin-top: 20px;
}

.auth-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-form button:hover {
    background: #5a67d8;
}

.error-msg {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success-msg {
    background: #efe;
    color: #3c3;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Стили для дашборда */
.dashboard header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.user-info {
    color: white;
}

.logout-btn {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

.dashboard main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}
/* Profile Page Styles */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-container h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.profile-info {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.avatar-section {
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.change-avatar-btn {
    padding: 8px 16px;
    background: #e9ecef;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.change-avatar-btn:hover {
    background: #dee2e6;
}

.info-section {
    flex: 1;
}

.info-group {
    margin-bottom: 20px;
}

.info-group label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-group p {
    font-size: 1.1rem;
    color: #333;
    padding: 8px 0;
    border-bottom: 2px solid #e9ecef;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
    }
}

/*room style;*/
#real,
#translate {
	width: 100%;
	padding: 1em;
}

#result,
#trResult {
	white-space: pre-wrap;
	border: 1px solid #ccc;
	padding: 1em;
	min-height: 4em;
	margin-top: 1em;
	max-height: 300px;
	overflow-y: auto;
	/*display: flex;*/
	flex-direction: column;
	padding: 10px;
	gap: 6px;
}

#status {
	margin-top: 0.5em;
	color: gray;
}

.enabled {
	background: aqua;
}

.disabled {
	background: red;
}

button {
	margin-right: 1em;
}

.word.active {
	background: yellow;
}

.table {
	width: 100%;
}

.row {
	display: flex;
	width: 100%;
}

.cell {
	padding: 8px;
}

.left {
	flex: 1;
}

.right {
	flex: 1;
}

.left.big {
	flex: 3;
}

.left.small {
	flex: 1;
}

.right.big {
	flex: 3;
}

.right.small {
	flex: 1;
}

.cell {
	transition: flex 0.3s ease;
}