/* Кастомні стилі для мобільного інтерфейсу */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: bold;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    min-height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #374151);
    color: white;
    font-weight: bold;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    min-height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(107, 114, 128, 0.3);
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #374151, #1f2937);
    box-shadow: 0 6px 20px 0 rgba(107, 114, 128, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-weight: bold;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    min-height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: bold;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    min-height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: bold;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    min-height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.resource-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 16px;
    text-align: center;
}

.cell-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-bottom: 8px;
    border-left: 4px solid;
}

.slider-container {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

/* Анімації для переходів між екранами */
.screen-transition {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.screen-enter {
    transform: translateX(100%);
    opacity: 0;
}

.screen-leave {
    transform: translateX(-100%);
    opacity: 0;
}

/* Стилі для карти */
.map-container {
    touch-action: pan-x pan-y;
    user-select: none;
}

.map-cell {
    border-radius: 12px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.map-cell:hover {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Стилі для попапів */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 540px;
    width: 100%;
    min-height: 200px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px 0;
    font-size: 14px;
}
