/* Базовые стили для всего приложения */

/* Общие стили для страницы */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Глобальное правило для всех элементов */
* {
    box-sizing: border-box;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Общие стили для кнопок */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* Футер навигации */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 0.5rem 0 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.footer-nav.hidden {
    transform: translateY(100%);
}

.footer-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
    border-radius: 8px;
    min-width: 60px;
}

.footer-nav-item:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.footer-nav-item.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.footer-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer-nav-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* Отступ для контента, чтобы футер не перекрывал */
main {
    padding-bottom: 5rem;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}
