* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    padding-bottom: 70px;
    color: #1a1a2e;
}

/* Контейнер */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Карточки новостей */
.news-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f172a;
}

.news-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 12px;
}

.news-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0f172a;
}

input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: border 0.2s;
}

input:focus {
    outline: none;
    border-color: #3b82f6;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: border 0.2s;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

button {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #2563eb;
}

/* Навбар */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    border-top: 1px solid #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-link.active {
    background: #3b82f6;
    color: white;
}

/* Профиль блок */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    margin-bottom: 20px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}

/* Стили для списка текстов */
.text-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.text-content {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1e293b;
    word-break: break-word;
}

.copy-btn {
    background: #10b981;
    margin-top: 10px;
    width: auto;
    padding: 10px 20px;
}

.copy-btn:hover {
    background: #059669;
}

.copy-btn-small {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: auto;
}

.copy-btn-small:hover {
    background: #059669;
}

.instruction-text {
    background: #fef3c7;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    color: #92400e;
}

.random-text {
    background: #e0e7ff;
    padding: 15px;
    border-radius: 12px;
    color: #3730a3;
}

/* Сообщения об ошибках/успехе */
.alert {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

/* Кнопка в профиле */
.auth-button {
    display: inline-block;
    text-align: center;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
}

/* Дополнительные стили */
h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #0f172a;
}

h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    color: #1e293b;
}

a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .navbar {
        padding: 10px 15px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}