/* Общие стили */
.menu-icon {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    background-color: #2d5016;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-line {
    width: 70%;
    height: 6px;
    background-color: #629d69;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.sidebar {
    position: fixed;
    top: 25px;
    left: 25px;
    width: 0;
    height: 0;
    background: rgba(45, 80, 22, 0.3);
    backdrop-filter: blur(100px);
    color: white;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 2px 0 10px #0000004d;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding-top: 40px;
    padding-right: 40px;
}

.menu-item {
    display: block;
    color: white;
    text-decoration: none;
    margin-top: 20px;
    padding: 15px 25px;
    font-size: 18px;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(-10px);
}

.menu-item:hover {
    background-color: rgba(45, 80, 22, 0.56);
    text-decoration: none;
    color: white;
    padding-left: px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Стили для страницы логина */
.login-page {
    background: linear-gradient(135deg, #2a672673, #2a6c276b);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    overflow: hidden;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.login-header {
    background: #2d5016;
    color: white;
    padding: 30px;
    text-align: center;
}

.login-form {
    padding: 30px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e1e5ec;
    transition: 0.3s;
    width: calc(100% - 30px);
}

.form-control:focus {
    border-color: #8bc34a;
    box-shadow: 0 0 0 0.2rem rgba(139, 195, 74, 0.25);
}

.btn-login {
    background: #43671a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
    cursor: pointer;
}

.btn-login:hover {
    background: #689f38;
    transform: translateY(-2px);
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #588820;
    text-decoration: none;
}

/* Стили для страницы карты */
.map-page {
    min-height: 100vh;
    background: #f8f9fa;
}

.navbar {
    background: #2a6726ce !important;

}

.map-container {
    height: 450px;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#map {
    height: 100%;
    width: 100%;
}

.events-sidebar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.event-card {
    border: 1px solid #e1e5ec;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
    cursor: pointer;
}

.event-card:hover {
    border-color: #8bc34a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.2);
}

.event-card.active {
    border-color: #8bc34a;
    background: #f1f8e9;
}

.event-date {
    color: #8bc34a;
    font-weight: bold;
    font-size: 14px;
}

.event-location {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.btn-volunteer {
    background: #8bc34a;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-volunteer:hover {
    background: #689f38;
}

.user-welcome {
    background: linear-gradient(135deg, #8bc34a, #aed581);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* Анимации */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для балунов на карте */
.balloon-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d5016;
}

.balloon-time {
    color: #8bc34a;
    font-size: 14px;
}

/* профиль */
.profile-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 10000;
    overflow-y: auto;
}

.stats-card,
.events-card,
.achievements-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e1e5ec;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    color: #112b00;
    font-size: 18px;
}

.upcoming-event {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #8bc34a;
}

.event-date {
    color: #8bc34a;
    font-weight: bold;
    font-size: 14px;
}

.event-title {
    font-weight: 500;
    margin: 5px 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.achievement {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: 0.3s;
}

.achievement.unlocked {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border: 2px solid #8bc34a;
}

.achievement.locked {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    opacity: 0.6;
}

.achievement-icon {
    font-size: 30px;
    margin-right: 15px;
}

.achievement-text {
    flex-grow: 1;
}

.achievement-text strong {
    display: block;
    color: #2d5016;
}

.achievement-text small {
    color: #666;
    font-size: 12px;
}

.btn-cancel {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.bonuses-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e8f5e8;
}

.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bonus-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #8ab656;
    transition: transform 0.3s ease;
}

.bonus-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e5ec;
}

.category-icon {
    font-size: 24px;
    margin-right: 12px;
}

.category-header h5 {
    color: #2d5016;
    margin: 0;
    font-size: 16px;
}

.bonus-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bonus-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.bonus-badge {
    background: #74a041;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.bonus-text {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    flex-grow: 1;
}

.bonus-footer {
    background: #f1f8e9;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e8f5e8;
}

.bonus-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bonus-stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #5d8e24;
    transition: transform 0.3s ease;
}

.bonus-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bonus-stat-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.bonus-stat-icon {
    font-size: 32px;
    margin-right: 15px;
}

.bonus-stat-info {
    flex-grow: 1;
}

.bonus-stat-title {
    font-weight: 600;
    color: #2d5016;
    font-size: 16px;
    margin-bottom: 5px;
}

.bonus-stat-count {
    font-size: 20px;
    font-weight: bold;
    color: #1d1b1b;
}

.bonus-progress {
    height: 8px;
    background: #e1e5ec;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8bc34a, #689f38);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bonus-stat-desc {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.bonus-stat-available {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.available-badge {
    background: #5d8e24;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
}

.bonus-details {
    background: #2a6c2738;
    border-radius: 10px;
    padding: 20px;
}

.bonus-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bonus-detail-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #5d8e24;
}

.bonus-detail-icon {
    font-size: 20px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.bonus-detail-text {
    flex-grow: 1;
}

.bonus-detail-text strong {
    display: block;
    color: #2d5016;
    font-size: 14px;
    margin-bottom: 3px;
}

.bonus-detail-text small {
    color: #666;
    font-size: 12px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .bonuses-grid {
        grid-template-columns: 1fr;
    }

    .bonus-item {
        flex-direction: column;
        gap: 5px;
    }

    .bonus-badge {
        align-self: flex-start;
    }

    .bonuses-card {
        padding: 20px;
    }

    .bonus-stats-grid {
        grid-template-columns: 1fr;
    }

    .bonus-stat-card {
        padding: 15px;
    }

    .bonus-stat-icon {
        font-size: 28px;
        margin-right: 12px;
    }
}