body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

body.main-page {
    background: #f8f9fa;
}

.logo-font {
    font-family: 'Bitcount Single', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
}

.auth-page .logo-font {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.question-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e1e1e1;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.question-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.question-title:hover {
    color: #667eea;
}

.question-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.question-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.likes-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge.bg-light.text-dark {
    background: #e9ecef !important;
    color: #495057 !important;
    padding: 5px 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.badge.bg-light.text-dark:hover {
    background: #667eea !important;
    color: #fff !important;
}

.list-group-item {
    border: none;
    padding: 10px 12px;
    transition: background 0.2s ease;
}

.list-group-item:hover {
    background: #f1f3f5;
}

.pagination .page-link {
    color: #667eea;
    border: none;
    margin: 0 3px;
    border-radius: 6px;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.avatar-gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.avatar-gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.avatar-gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.avatar-gradient-4 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.password-requirements {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .logo-font { font-size: 1.4rem; }
    .auth-page .logo-font { font-size: 2rem; }
    .question-title { font-size: 1rem; }
}

.rating-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    background: #e9ecef;
    color: #495057;
}

.rating-positive {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.rating-negative {
    background: linear-gradient(135deg, #fa5252 0%, #e03131 100%);
    color: white;
}

.navbar .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

.navbar .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Кнопка поиска */
.navbar .btn-outline-light[type="submit"] {
    min-width: 80px;
}